diff options
Diffstat (limited to 'activerecord/test/cases/associations/belongs_to_associations_test.rb')
-rw-r--r-- | activerecord/test/cases/associations/belongs_to_associations_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/test/cases/associations/belongs_to_associations_test.rb b/activerecord/test/cases/associations/belongs_to_associations_test.rb index c1a335bda8..d1e4ebe86b 100644 --- a/activerecord/test/cases/associations/belongs_to_associations_test.rb +++ b/activerecord/test/cases/associations/belongs_to_associations_test.rb @@ -33,10 +33,10 @@ class BelongsToAssociationsTest < ActiveRecord::TestCase def test_belongs_to client = Client.find(3) + first_firm = companies(:first_firm) assert_sql(/LIMIT|ROWNUM <=|FETCH FIRST/) do - firm = client.firm - assert_not_nil firm - assert_equal companies(:first_firm).name, firm.name + assert_equal first_firm, client.firm + assert_equal first_firm.name, client.firm.name end end |