diff options
| author | Jon Leighton <j@jonathanleighton.com> | 2012-07-06 17:23:33 +0100 |
|---|---|---|
| committer | Jon Leighton <j@jonathanleighton.com> | 2012-07-13 11:55:48 +0100 |
| commit | 76d33970612383c8a3c3a320c544ecbee2f38e1c (patch) | |
| tree | 0414d8e55d48e551a07a700909cc2312fd19de30 | |
| parent | 5a54bffe37f9e16405779d9729d7903d7c7d6c56 (diff) | |
| download | rails-76d33970612383c8a3c3a320c544ecbee2f38e1c.tar.gz rails-76d33970612383c8a3c3a320c544ecbee2f38e1c.tar.bz2 rails-76d33970612383c8a3c3a320c544ecbee2f38e1c.zip | |
fix assertion arguments order
| -rw-r--r-- | activerecord/test/cases/associations/belongs_to_associations_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/associations/belongs_to_associations_test.rb b/activerecord/test/cases/associations/belongs_to_associations_test.rb index 2c7a240915..2dd8c78eab 100644 --- a/activerecord/test/cases/associations/belongs_to_associations_test.rb +++ b/activerecord/test/cases/associations/belongs_to_associations_test.rb @@ -181,8 +181,8 @@ class BelongsToAssociationsTest < ActiveRecord::TestCase 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 |
