Skip to content

Commit

Permalink
Refactored and removed unnecessary lines in the test case
Browse files Browse the repository at this point in the history
  • Loading branch information
anupamc committed Mar 7, 2013
1 parent 173e0e0 commit f15d9bd
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f15d9bd

Please sign in to comment.