Commit 19ac9d93fdaffef723514bfd8722d10ad9fc1de8
1 parent
8ef58efe
Exists in
master
and in
27 other branches
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,7 +20,7 @@ class ProfileCategorizationTest < ActiveSupport::TestCase | ||
20 | 20 | ||
21 | p = create_user('testuser').person | 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 | ProfileCategorization.add_category_to_profile(c2, p) | 24 | ProfileCategorization.add_category_to_profile(c2, p) |
25 | end | 25 | end |
26 | 26 | ||
@@ -38,7 +38,7 @@ class ProfileCategorizationTest < ActiveSupport::TestCase | @@ -38,7 +38,7 @@ class ProfileCategorizationTest < ActiveSupport::TestCase | ||
38 | 38 | ||
39 | p = create_user('testuser').person | 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 | ProfileCategorization.add_category_to_profile(c2, p) | 42 | ProfileCategorization.add_category_to_profile(c2, p) |
43 | ProfileCategorization.add_category_to_profile(c3, p) | 43 | ProfileCategorization.add_category_to_profile(c3, p) |
44 | end | 44 | end |
@@ -58,7 +58,7 @@ class ProfileCategorizationTest < ActiveSupport::TestCase | @@ -58,7 +58,7 @@ class ProfileCategorizationTest < ActiveSupport::TestCase | ||
58 | ProfileCategorization.add_category_to_profile(c2, p) | 58 | ProfileCategorization.add_category_to_profile(c2, p) |
59 | ProfileCategorization.add_category_to_profile(c3, p) | 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 | ProfileCategorization.remove_all_for(p) | 62 | ProfileCategorization.remove_all_for(p) |
63 | end | 63 | end |
64 | end | 64 | end |