Sha256: c6686d6834dbd306873f6123fcf337f430bd2cc8352be26a80e49929cf3cc0fa

Contents?: true

Size: 534 Bytes

Versions: 19

Compression:

Stored size: 534 Bytes

Contents

require 'spec_helper'
require 'simple_token_authentication/adapters/rails_adapter'

describe 'SimpleTokenAuthentication::Adapters::RailsAdapter' do

  before(:each) do
    stub_const('ActionController', Module.new)
    stub_const('ActionController::Base', double())

    @subject = SimpleTokenAuthentication::Adapters::RailsAdapter
  end

  it_behaves_like 'an adapter'

  describe '.base_class' do

    it 'is ActionController::Base', private: true do
      expect(@subject.base_class).to eq ActionController::Base
    end
  end
end

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
simple_token_authentication-1.18.1 spec/lib/simple_token_authentication/adapters/rails_adapter_spec.rb
simple_token_authentication-1.18.0 spec/lib/simple_token_authentication/adapters/rails_adapter_spec.rb
simple_token_authentication-1.17.0 spec/lib/simple_token_authentication/adapters/rails_adapter_spec.rb
simple_token_authentication-1.16.0 spec/lib/simple_token_authentication/adapters/rails_adapter_spec.rb
simple_token_authentication-1.15.1 spec/lib/simple_token_authentication/adapters/rails_adapter_spec.rb
simple_token_authentication-1.15.0 spec/lib/simple_token_authentication/adapters/rails_adapter_spec.rb
simple_token_authentication-1.14.0 spec/lib/simple_token_authentication/adapters/rails_adapter_spec.rb
simple_token_authentication-1.13.0 spec/lib/simple_token_authentication/adapters/rails_adapter_spec.rb
simple_token_authentication-1.12.0 spec/lib/simple_token_authentication/adapters/rails_adapter_spec.rb
simple_token_authentication-1.11.0 spec/lib/simple_token_authentication/adapters/rails_adapter_spec.rb
simple_token_authentication-1.10.1 spec/lib/simple_token_authentication/adapters/rails_adapter_spec.rb
simple_token_authentication-1.10.0 spec/lib/simple_token_authentication/adapters/rails_adapter_spec.rb
simple_token_authentication-1.9.1 spec/lib/simple_token_authentication/adapters/rails_adapter_spec.rb
simple_token_authentication-1.9.0 spec/lib/simple_token_authentication/adapters/rails_adapter_spec.rb
simple_token_authentication-1.8.0 spec/lib/simple_token_authentication/adapters/rails_adapter_spec.rb
stn-simple_token_authentication-1.7.1 spec/lib/simple_token_authentication/adapters/rails_adapter_spec.rb
simple_token_authentication-1.7.0 spec/lib/simple_token_authentication/adapters/rails_adapter_spec.rb
simple_token_authentication-1.6.0 spec/lib/simple_token_authentication/adapters/rails_adapter_spec.rb
simple_token_authentication-1.5.2 spec/lib/simple_token_authentication/adapters/rails_adapter_spec.rb