Created
October 15, 2010 18:33
-
-
Save robotarmy/628697 to your computer and use it in GitHub Desktop.
test
This file contains hidden or 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 "has one user status" do | |
r = make_review_with_book | |
assert { | |
r.user_status == nil | |
} | |
us = UserStatus.make(:user => r.user, :book => r.book) | |
assert { | |
r.user_status.user == r.user | |
} | |
us2 = UserStatus.make(:user => r.user, :book => r.book) | |
assert { | |
r.user_status.id == us2.id | |
} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment