Sha256: 0ca90721f10194ff067fb145103dd4a8cba8de362c3b6c0f1073c2172584dcdd

Contents?: true

Size: 319 Bytes

Versions: 8

Compression:

Stored size: 319 Bytes

Contents

RSpec.shared_examples 'a token comparator' do

  let(:token_comparator) { described_class.instance }

  it 'responds to :compare', public: true do
    expect(token_comparator).to respond_to :compare
  end

  it 'is a kind of Singleton', private: true  do
    expect(token_comparator).to be_kind_of(Singleton)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
simple_token_authentication-1.18.1 spec/support/spec_for_token_comparator_interface.rb
simple_token_authentication-1.18.0 spec/support/spec_for_token_comparator_interface.rb
simple_token_authentication-1.17.0 spec/support/spec_for_token_comparator_interface.rb
simple_token_authentication-1.16.0 spec/support/spec_for_token_comparator_interface.rb
simple_token_authentication-1.15.1 spec/support/spec_for_token_comparator_interface.rb
simple_token_authentication-1.15.0 spec/support/spec_for_token_comparator_interface.rb
simple_token_authentication-1.14.0 spec/support/spec_for_token_comparator_interface.rb
simple_token_authentication-1.13.0 spec/support/spec_for_token_comparator_interface.rb