From 556924c915b8d3c659a78317862b841cc501789a Mon Sep 17 00:00:00 2001 From: Daniela Soares Feitosa Date: Thu, 3 Mar 2011 21:16:09 -0300 Subject: [PATCH] Verifying controller on display_profile_info test --- test/unit/search_helper_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/search_helper_test.rb b/test/unit/search_helper_test.rb index 8840a83..150504a 100644 --- a/test/unit/search_helper_test.rb +++ b/test/unit/search_helper_test.rb @@ -51,8 +51,8 @@ class SearchHelperTest < Test::Unit::TestCase product1 = fast_create(Product, :enterprise_id => enterprise.id) product2 = fast_create(Product, :enterprise_id => enterprise.id) result = display_profile_info(enterprise) - assert_tag_in_string result, :tag => 'a', :attributes => {:href => /:id=>#{product1.id}/}, :content => product1.name - assert_tag_in_string result, :tag => 'a', :attributes => {:href => /:id=>#{product2.id}/}, :content => product2.name + assert_tag_in_string result, :tag => 'a', :attributes => {:href => /:controller=>\"manage_products\", :id=>#{product1.id}/}, :content => product1.name + assert_tag_in_string result, :tag => 'a', :attributes => {:href => /:controller=>\"manage_products\", :id=>#{product2.id}/}, :content => product2.name end protected -- libgit2 0.21.2