Sha256: 3455debd613dbe318173d78201994e942a63bf5190c5ca6ca23e7fe7255b0696

Contents?: true

Size: 517 Bytes

Versions: 4

Compression:

Stored size: 517 Bytes

Contents

RSpec.shared_examples 'a token authentication handler' do

  let(:token_authentication_handler) { described_class }

  it 'responds to :handle_token_authentication_for', private: true do
    expect(token_authentication_handler).to respond_to :handle_token_authentication_for
  end

  describe 'instance' do

    it 'responds to :after_successful_token_authentication', hooks: true, private: true do
      expect(token_authentication_handler.new).to respond_to :after_successful_token_authentication
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
simple_token_authentication-1.17.0 spec/support/specs_for_token_authentication_handler_interface.rb
simple_token_authentication-1.16.0 spec/support/specs_for_token_authentication_handler_interface.rb
simple_token_authentication-1.15.1 spec/support/specs_for_token_authentication_handler_interface.rb
simple_token_authentication-1.15.0 spec/support/specs_for_token_authentication_handler_interface.rb