Sha256: 8516f2175a7ed9a9dd3b903725582d66042cb38ac7c0e89ca9032908cc52923b

Contents?: true

Size: 447 Bytes

Versions: 2

Compression:

Stored size: 447 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_key.should == "API_KEY"
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
heroku-scalr-0.3.0 spec/heroku/scalr/config_spec.rb
heroku-scalr-0.2.4 spec/heroku/scalr/config_spec.rb