Created
January 8, 2014 02:10
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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