Commit 556924c915b8d3c659a78317862b841cc501789a
1 parent
500752ef
Exists in
master
and in
29 other branches
Verifying controller on display_profile_info test
(ActionItem1907)
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
test/unit/search_helper_test.rb
... | ... | @@ -51,8 +51,8 @@ class SearchHelperTest < Test::Unit::TestCase |
51 | 51 | product1 = fast_create(Product, :enterprise_id => enterprise.id) |
52 | 52 | product2 = fast_create(Product, :enterprise_id => enterprise.id) |
53 | 53 | result = display_profile_info(enterprise) |
54 | - assert_tag_in_string result, :tag => 'a', :attributes => {:href => /:id=>#{product1.id}/}, :content => product1.name | |
55 | - assert_tag_in_string result, :tag => 'a', :attributes => {:href => /:id=>#{product2.id}/}, :content => product2.name | |
54 | + assert_tag_in_string result, :tag => 'a', :attributes => {:href => /:controller=>\"manage_products\", :id=>#{product1.id}/}, :content => product1.name | |
55 | + assert_tag_in_string result, :tag => 'a', :attributes => {:href => /:controller=>\"manage_products\", :id=>#{product2.id}/}, :content => product2.name | |
56 | 56 | end |
57 | 57 | |
58 | 58 | protected | ... | ... |