Sha256: a43339e8d9a8e7d918e564702afe86ea9604ba3f56bdef721b8127734b823728

Contents?: true

Size: 516 Bytes

Versions: 16

Compression:

Stored size: 516 Bytes

Contents

require 'spec_helper'
require 'simple_token_authentication/adapters/mongoid_adapter'

describe 'SimpleTokenAuthentication::Adapters::MongoidAdapter' do

  before(:each) do
    stub_const('Mongoid', Module.new)
    stub_const('Mongoid::Document', double())

    @subject = SimpleTokenAuthentication::Adapters::MongoidAdapter
  end

  it_behaves_like 'an adapter'

  describe '.base_class' do

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

Version data entries

16 entries across 16 versions & 2 rubygems

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