Sha256: f1e34caf3859644da1fd9f3e291c953eca3e3a86cd83f9a5730371d4df860d98
Contents?: true
Size: 700 Bytes
Versions: 53
Compression:
Stored size: 700 Bytes
Contents
require 'spec_helper' describe Aptible::Auth do subject { Aptible::Auth::User.new } it 'should have a configurable root_url' do config = described_class.configuration expect(config).to be_a GemConfig::Configuration expect(config.root_url).to eq 'https://auth.aptible.com' end pending 'uses ENV["APTIBLE_AUTH_ROOT_URL"] if defined' do config = described_class.configuration set_env 'APTIBLE_AUTH_ROOT_URL', 'http://foobar.com' do config.reset expect(config.root_url).to eq 'http://foobar.com' end end it 'should expose the server public key' do Aptible::Auth::Agent.any_instance.should_receive :public_key Aptible::Auth.public_key end end
Version data entries
53 entries across 53 versions & 1 rubygems