Commit 19ac9d93fdaffef723514bfd8722d10ad9fc1de8

Authored by Victor Costa
1 parent 8ef58efe

rails3: fix profile_categorization_test

Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
test/unit/profile_categorization_test.rb
... ... @@ -20,7 +20,7 @@ class ProfileCategorizationTest < ActiveSupport::TestCase
20 20  
21 21 p = create_user('testuser').person
22 22  
23   - assert_difference 'ProfileCategorization.count', 2 do
  23 + assert_difference 'ProfileCategorization.count(:category_id)', 2 do
24 24 ProfileCategorization.add_category_to_profile(c2, p)
25 25 end
26 26  
... ... @@ -38,7 +38,7 @@ class ProfileCategorizationTest < ActiveSupport::TestCase
38 38  
39 39 p = create_user('testuser').person
40 40  
41   - assert_difference 'ProfileCategorization.count', 3 do
  41 + assert_difference 'ProfileCategorization.count(:category_id)', 3 do
42 42 ProfileCategorization.add_category_to_profile(c2, p)
43 43 ProfileCategorization.add_category_to_profile(c3, p)
44 44 end
... ... @@ -58,7 +58,7 @@ class ProfileCategorizationTest < ActiveSupport::TestCase
58 58 ProfileCategorization.add_category_to_profile(c2, p)
59 59 ProfileCategorization.add_category_to_profile(c3, p)
60 60  
61   - assert_difference 'ProfileCategorization.count', -3 do
  61 + assert_difference 'ProfileCategorization.count(:category_id)', -3 do
62 62 ProfileCategorization.remove_all_for(p)
63 63 end
64 64 end
... ...