From 679042926e420787f8b4d01827fbe84e60f2114d Mon Sep 17 00:00:00 2001 From: AntonioTerceiro Date: Fri, 6 Jun 2008 23:05:51 +0000 Subject: [PATCH] ActionItem410: adding events to the test of search result display --- test/functional/search_controller_test.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/functional/search_controller_test.rb b/test/functional/search_controller_test.rb index 66b83f6..f0a8b27 100644 --- a/test/functional/search_controller_test.rb +++ b/test/functional/search_controller_test.rb @@ -288,6 +288,7 @@ class SearchControllerTest < Test::Unit::TestCase product = ent.products.create!(:name => 'display product') person = create_user('displayperson').person; person.name = 'display person'; person.save! article = person.articles.create!(:name => 'display article') + event = Event.new(:name => 'display event', :start_date => Date.today); event.profile = person; event.save! comment = article.comments.create!(:title => 'display comment', :body => '...', :author => person) community = Community.create!(:name => 'display community', :identifier => 'an_bea_comm') @@ -315,7 +316,7 @@ class SearchControllerTest < Test::Unit::TestCase :enterprises => 'Enterprises', :communities => 'Communities', :products => 'Products', - :events => 'Events' + :events => 'Events', } names.each do |thing,description| assert_tag :tag => 'input', :attributes => { :type => 'checkbox', :name => "find_in[]", :value => thing.to_s, :checked => 'checked' } -- libgit2 0.21.2