aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2012-07-06 17:23:33 +0100
committerJon Leighton <j@jonathanleighton.com>2012-07-13 11:55:48 +0100
commit76d33970612383c8a3c3a320c544ecbee2f38e1c (patch)
tree0414d8e55d48e551a07a700909cc2312fd19de30 /activerecord/test/cases
parent5a54bffe37f9e16405779d9729d7903d7c7d6c56 (diff)
downloadrails-76d33970612383c8a3c3a320c544ecbee2f38e1c.tar.gz
rails-76d33970612383c8a3c3a320c544ecbee2f38e1c.tar.bz2
rails-76d33970612383c8a3c3a320c544ecbee2f38e1c.zip
fix assertion arguments order
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r--activerecord/test/cases/associations/belongs_to_associations_test.rb4
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