Class: Hanko::TestHelper::StubVerifier
- Inherits:
-
Object
- Object
- Hanko::TestHelper::StubVerifier
- Defined in:
- lib/hanko/test_helper.rb
Overview
A simple stub that returns a fixed payload instead of verifying a token.
Instance Method Summary collapse
-
#initialize(payload) ⇒ StubVerifier
constructor
A new instance of StubVerifier.
-
#verify(_token) ⇒ Hash
Returns the fixed payload, ignoring the token.
Constructor Details
#initialize(payload) ⇒ StubVerifier
Returns a new instance of StubVerifier.
21 22 23 |
# File 'lib/hanko/test_helper.rb', line 21 def initialize(payload) @payload = payload end |
Instance Method Details
#verify(_token) ⇒ Hash
Returns the fixed payload, ignoring the token.
29 30 31 |
# File 'lib/hanko/test_helper.rb', line 29 def verify(_token) @payload end |