Sha256: 196efa8041c20d34b13646c0959eaef2db776128d4ce248a3ee31bd26ba2f961
Contents?: true
Size: 959 Bytes
Versions: 2
Compression:
Stored size: 959 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe NexaasID do it 'should have a version number' do expect(NexaasID::VERSION).not_to be_nil end describe 'configuration' do it 'should be done via block initialization' do NexaasID.configure do |c| c.url = 'http://some/where' c.user_agent = 'My App v1.0' c.application_token = 'some-app-token' c.application_secret = 'some-app-secret' end expect(NexaasID.configuration.url).to eq('http://some/where') expect(NexaasID.configuration.user_agent).to eq('My App v1.0') expect(NexaasID.configuration.application_token).to eq('some-app-token') expect(NexaasID.configuration.application_secret).to eq('some-app-secret') end it 'should use a singleton object for the configuration values' do config1 = NexaasID.configuration config2 = NexaasID.configuration expect(config1).to be === config2 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nexaas_id-client-0.6.0 | spec/nexaas_id_spec.rb |
nexaas_id-client-0.5.0 | spec/nexaas_id_spec.rb |