spec/fernet_spec.rb in fernet-2.1 vs spec/fernet_spec.rb in fernet-2.1.1

- old
+ new

@@ -65,10 +65,10 @@ Fernet::Configuration.run do |config| config.enforce_ttl = true config.ttl = 0 end token = Fernet.generate(secret, 'password1') - verifier = Fernet.verifier(secret, token) + verifier = Fernet.verifier(secret, token, now: Time.now + 999999) verifier.enforce_ttl = false expect(verifier.valid?).to eq(true) expect(verifier.message).to eq('password1') end end