Commit 95a37ccc9a207cea963ebe13dcd37e3b86acd479

Authored by Daniela Feitosa
1 parent c2656986

Revert "Verifying controller on display_profile_info test"

This reverts commit 556924c915b8d3c659a78317862b841cc501789a.

Can't test the order of elements of a hash, so sometimes this test will fail
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 => /: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
  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
56 56 end
57 57  
58 58 protected
... ...