Commit 679042926e420787f8b4d01827fbe84e60f2114d
1 parent
dcf5bbd6
Exists in
master
and in
29 other branches
ActionItem410: adding events to the test of search result display
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1902 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
test/functional/search_controller_test.rb
@@ -288,6 +288,7 @@ class SearchControllerTest < Test::Unit::TestCase | @@ -288,6 +288,7 @@ class SearchControllerTest < Test::Unit::TestCase | ||
288 | product = ent.products.create!(:name => 'display product') | 288 | product = ent.products.create!(:name => 'display product') |
289 | person = create_user('displayperson').person; person.name = 'display person'; person.save! | 289 | person = create_user('displayperson').person; person.name = 'display person'; person.save! |
290 | article = person.articles.create!(:name => 'display article') | 290 | article = person.articles.create!(:name => 'display article') |
291 | + event = Event.new(:name => 'display event', :start_date => Date.today); event.profile = person; event.save! | ||
291 | comment = article.comments.create!(:title => 'display comment', :body => '...', :author => person) | 292 | comment = article.comments.create!(:title => 'display comment', :body => '...', :author => person) |
292 | community = Community.create!(:name => 'display community', :identifier => 'an_bea_comm') | 293 | community = Community.create!(:name => 'display community', :identifier => 'an_bea_comm') |
293 | 294 | ||
@@ -315,7 +316,7 @@ class SearchControllerTest < Test::Unit::TestCase | @@ -315,7 +316,7 @@ class SearchControllerTest < Test::Unit::TestCase | ||
315 | :enterprises => 'Enterprises', | 316 | :enterprises => 'Enterprises', |
316 | :communities => 'Communities', | 317 | :communities => 'Communities', |
317 | :products => 'Products', | 318 | :products => 'Products', |
318 | - :events => 'Events' | 319 | + :events => 'Events', |
319 | } | 320 | } |
320 | names.each do |thing,description| | 321 | names.each do |thing,description| |
321 | assert_tag :tag => 'input', :attributes => { :type => 'checkbox', :name => "find_in[]", :value => thing.to_s, :checked => 'checked' } | 322 | assert_tag :tag => 'input', :attributes => { :type => 'checkbox', :name => "find_in[]", :value => thing.to_s, :checked => 'checked' } |