Sha256: 700cdef251e26e17a5d5ae6206aa259c3a3581ba7fabac14a70f250613c6a63e
Contents?: true
Size: 715 Bytes
Versions: 3
Compression:
Stored size: 715 Bytes
Contents
require 'spec_helper' class MockClass attr_reader :token include Auth0::Mixins::Initializer include Auth0::Mixins::HTTPProxy end describe Auth0::Mixins::Initializer do let(:params) { { namespace: 'samples.auth0.com' } } let(:instance) { DummyClassForProxy.send(:include, described_class).new(params) } context 'api v2' do before do params[:api_version] = 2 end it 'sets token when access_token is passed' do params[:access_token] = '123' expect(instance.instance_variable_get('@token')).to eq('123') end it 'sets token when token is passed' do params[:token] = '123' expect(instance.instance_variable_get('@token')).to eq('123') end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
auth0-4.5.0 | spec/lib/auth0/mixins/initializer_spec.rb |
auth0-4.4.0 | spec/lib/auth0/mixins/initializer_spec.rb |
auth0-4.1.0 | spec/lib/auth0/mixins/initializer_spec.rb |