Sha256: e1c5fd3828832a10a69b0bfc9a6fe0927083e607e384faf42122280ddf92d39a

Contents?: true

Size: 525 Bytes

Versions: 2

Compression:

Stored size: 525 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 'does not implement :after_successful_token_authentication by default', private: true do
      expect(token_authentication_handler.new).not_to respond_to :after_successful_token_authentication
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
simple_token_authentication-1.18.1 spec/support/specs_for_token_authentication_handler_interface.rb
simple_token_authentication-1.18.0 spec/support/specs_for_token_authentication_handler_interface.rb