Created
August 9, 2017 15:28
-
-
Save mjc-gh/f26d474d4f50b7bc99f34e15369aa9ec 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
class MessageVerifierTest < ActiveSupport::TestCase | |
def test_null_serializer | |
verifier = ActiveSupport::MessageVerifier.new("Hey, I'm a secret!", serializer: ActiveSupport::MessageEncryptor::NullSerializer) | |
message = verifier.generate("message", expires_in: 1.day, purpose: 'NullSerializer') | |
assert_equal "message", verifier.verify(message) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment