Permalink
Browse files

fix assertion arguments order

  • Loading branch information...
1 parent 5a54bff commit 76d33970612383c8a3c3a320c544ecbee2f38e1c @jonleighton jonleighton committed Jul 6, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/test/cases/associations/belongs_to_associations_test.rb
@@ -181,8 +181,8 @@ def test_with_polymorphic_and_condition
end
def test_with_select
- assert_equal Company.find(2).firm_with_select.attributes.size, 1
- assert_equal Company.scoped(:includes => :firm_with_select ).find(2).firm_with_select.attributes.size, 1
+ assert_equal 1, Company.find(2).firm_with_select.attributes.size
+ assert_equal 1, Company.scoped(:includes => :firm_with_select ).find(2).firm_with_select.attributes.size
end
def test_belongs_to_counter

0 comments on commit 76d3397

Please sign in to comment.