spec/fernet_spec.rb in fernet-0.0.1 vs spec/fernet_spec.rb in fernet-0.0.2

- old
+ new

@@ -45,6 +45,14 @@ Fernet.verify('bad', token) do |verifier| verifier.seconds_valid = 0 end.should be_false end + + it 'verifies without a custom verification' do + token = Fernet.generate(secret) do |generator| + generator.data = token_data + end + + Fernet.verify(secret, token).should be_true + end end