Sha256: c491d63d0122e15a15c0b29f0d0eb5eba99c1e243ad1da8a3f6b48c9661faf9e

Contents?: true

Size: 553 Bytes

Versions: 9

Compression:

Stored size: 553 Bytes

Contents

require 'spec_helper'
require 'simple_token_authentication/adapters/rails_metal_adapter'

describe 'SimpleTokenAuthentication::Adapters::RailsMetalAdapter' do

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

    @subject = SimpleTokenAuthentication::Adapters::RailsMetalAdapter
  end

  it_behaves_like 'an adapter'

  describe '.base_class' do

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
simple_token_authentication-1.18.1 spec/lib/simple_token_authentication/adapters/rails_metal_adapter_spec.rb
simple_token_authentication-1.18.0 spec/lib/simple_token_authentication/adapters/rails_metal_adapter_spec.rb
simple_token_authentication-1.17.0 spec/lib/simple_token_authentication/adapters/rails_metal_adapter_spec.rb
simple_token_authentication-1.16.0 spec/lib/simple_token_authentication/adapters/rails_metal_adapter_spec.rb
simple_token_authentication-1.15.1 spec/lib/simple_token_authentication/adapters/rails_metal_adapter_spec.rb
simple_token_authentication-1.15.0 spec/lib/simple_token_authentication/adapters/rails_metal_adapter_spec.rb
simple_token_authentication-1.14.0 spec/lib/simple_token_authentication/adapters/rails_metal_adapter_spec.rb
simple_token_authentication-1.13.0 spec/lib/simple_token_authentication/adapters/rails_metal_adapter_spec.rb
simple_token_authentication-1.12.0 spec/lib/simple_token_authentication/adapters/rails_metal_adapter_spec.rb