We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2a7cd75 + e0ad2e7 commit 912096dCopy full SHA for 912096d
activerecord/test/cases/token_for_test.rb
@@ -104,7 +104,7 @@ class User < ::User
104
test "supports JSON-serializable embedded data" do
105
snapshot_token = @user.generate_token_for(:snapshot)
106
assert_equal @user, User.find_by_token_for(:snapshot, snapshot_token)
107
- @user.touch
+ @user.touch(time: @user.updated_at.advance(seconds: 1))
108
assert_nil User.find_by_token_for(:snapshot, snapshot_token)
109
end
110
0 commit comments