Skip to content

Instantly share code, notes, and snippets.

@lsiden
Created January 8, 2014 02:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lsiden/8310536 to your computer and use it in GitHub Desktop.
Save lsiden/8310536 to your computer and use it in GitHub Desktop.
A test that fails when this solution, http://stackoverflow.com/a/6456889/270511, is applied.
test "inverse of user.profiles" do
user = create :user
profile = create :profile, user: user
assert_equal profile, user.profiles.first, "profile == user.profiles.first"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment