Sha256: 0b997aa0d433341916f2408c4bd69e250ae9d5aa6d5be2f715a07024045a6b6c
Contents?: true
Size: 803 Bytes
Versions: 1
Compression:
Stored size: 803 Bytes
Contents
if Module.const_defined?('ActiveModel') && ActiveModel.const_defined?('Serializers') && ActiveModel::Serializers.const_defined?('Xml') # As far as I know Mongoid doesn't support Rails 6 # Please let me know if this isn't true when you read it! 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 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simple_token_authentication-1.16.0 | spec/lib/simple_token_authentication/adapters/mongoid_adapter_spec.rb |