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

Version Path
aptible-auth-1.2.5 spec/aptible/auth_spec.rb
aptible-auth-1.2.4 spec/aptible/auth_spec.rb
aptible-auth-1.2.3 spec/aptible/auth_spec.rb
aptible-auth-1.2.2 spec/aptible/auth_spec.rb
aptible-auth-1.2.1 spec/aptible/auth_spec.rb
aptible-auth-1.1.0 spec/aptible/auth_spec.rb
aptible-auth-1.0.1 spec/aptible/auth_spec.rb
aptible-auth-1.0.0 spec/aptible/auth_spec.rb
aptible-auth-0.12.0 spec/aptible/auth_spec.rb
aptible-auth-0.11.15 spec/aptible/auth_spec.rb
aptible-auth-0.11.14 spec/aptible/auth_spec.rb
aptible-auth-0.11.13 spec/aptible/auth_spec.rb
aptible-auth-0.11.12 spec/aptible/auth_spec.rb
aptible-auth-0.11.11 spec/aptible/auth_spec.rb
aptible-auth-0.11.10 spec/aptible/auth_spec.rb
aptible-auth-0.11.8 spec/aptible/auth_spec.rb
aptible-auth-0.11.7 spec/aptible/auth_spec.rb
aptible-auth-0.11.6 spec/aptible/auth_spec.rb
aptible-auth-0.11.5 spec/aptible/auth_spec.rb
aptible-auth-0.11.3 spec/aptible/auth_spec.rb