Sha256: d4d18d2b59c3fb1221ded8bdc3479881d9b34d9f53a3ac99629aa93fd716c4fb

Contents?: true

Size: 790 Bytes

Versions: 5

Compression:

Stored size: 790 Bytes

Contents

require 'spec_helper'

describe NexaasID::Client::Application do
  describe 'implicit default configuration' do
    subject { described_class.new }

    describe '#sign_up' do
      it 'provides the signup resource' do
        VCR.use_cassette('application/sign_up/client_credentials') do
          expect(subject.sign_up).to be_a(NexaasID::Resources::SignUp)
        end
      end
    end
  end

  describe 'explicit configuration' do
    subject { described_class.new(configuration) }

    let(:configuration) { default_configuration }

    describe '#sign_up' do
      it 'provides the signup resource' do
        VCR.use_cassette('application/sign_up/client_credentials') do
          expect(subject.sign_up).to be_a(NexaasID::Resources::SignUp)
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
nexaas_id-client-0.7.4 spec/nexaas_id/client/application_spec.rb
nexaas_id-client-0.7.3 spec/nexaas_id/client/application_spec.rb
nexaas_id-client-0.7.2 spec/nexaas_id/client/application_spec.rb
nexaas_id-client-0.7.1 spec/nexaas_id/client/application_spec.rb
nexaas_id-client-0.7.0 spec/nexaas_id/client/application_spec.rb