Created
August 7, 2009 06:59
-
-
Save avk/163766 to your computer and use it in GitHub Desktop.
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 "should only generate url tokens on creation" do | |
invite = invites(:page) | |
old_token = invite.url_token | |
invite.last_visited_at = 1.day.ago | |
invite.save | |
invite.reload | |
new_token = invite.url_token | |
assert old_token == new_token, "url tokens are getting changed upon update" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment