Sha256: bf1e09f37f16fe1d4bfd3d020455e7cfc0c1800489af86ed939bde6045117046

Contents?: true

Size: 547 Bytes

Versions: 3

Compression:

Stored size: 547 Bytes

Contents

require 'spec_helper'

describe Aptible::Api do
  subject { Aptible::Api::App.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://api.aptible.com'
  end

  pending 'uses ENV["APTIBLE_API_ROOT_URL"] if defined' do
    config = described_class.configuration
    set_env 'APTIBLE_API_ROOT_URL', 'http://foobar.com' do
      config.reset
      expect(config.root_url).to eq 'http://foobar.com'
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
aptible-api-0.5.2 spec/aptible/api_spec.rb
aptible-api-0.5.1 spec/aptible/api_spec.rb
aptible-api-0.5.0 spec/aptible/api_spec.rb