Skip to content
Browse files

Merge pull request #9596 from choudhuryanupam/master

Refactored the code to remove irrelevant lines
  • Loading branch information...
2 parents 173e0e0 + f15d9bd commit 7a32495e60c7480351d6b87b1c168f18b016e3ec @rafaelfranca rafaelfranca committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 activerecord/test/cases/associations/belongs_to_associations_test.rb
View
6 activerecord/test/cases/associations/belongs_to_associations_test.rb
@@ -21,9 +21,9 @@ class BelongsToAssociationsTest < ActiveRecord::TestCase
:posts, :tags, :taggings, :comments, :sponsors, :members
def test_belongs_to
- Client.find(3).firm.name
- assert_equal companies(:first_firm).name, Client.find(3).firm.name
- assert_not_nil Client.find(3).firm, "Microsoft should have a firm"
+ firm = Client.find(3).firm
+ assert_not_nil firm
+ assert_equal companies(:first_firm).name, firm.name
end
def test_belongs_to_with_primary_key

0 comments on commit 7a32495

Please sign in to comment.
Something went wrong with that request. Please try again.