Sha256: 9ed22f69745d0a7fb85ec26508f51ff92e0806ddbd1dbc914e9acbc74394f636

Contents?: true

Size: 476 Bytes

Versions: 5

Compression:

Stored size: 476 Bytes

Contents

require 'spec_helper'

describe Heroku::Scalr::Config do

  subject { described_class.new(fixture_path("config_a.rb")) }

  its(:apps)     { should be_instance_of(Array) }
  its(:apps)     { should have(2).items }
  its(:defaults) { should eq(api_key: "API_KEY") }

  it 'should merge defaults into app configurations' do
    app = subject.apps.first
    app.should be_instance_of(Heroku::Scalr::App)
    app.api.instance_variable_get(:@api_key).should == "API_KEY"
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
heroku-scalr-0.2.3 spec/heroku/scalr/config_spec.rb
heroku-scalr-0.2.2 spec/heroku/scalr/config_spec.rb
heroku-scalr-0.2.1 spec/heroku/scalr/config_spec.rb
heroku-scalr-0.2.0 spec/heroku/scalr/config_spec.rb
heroku-scalr-0.1.0 spec/heroku/scalr/config_spec.rb