Sha256: 275b05d8cd72179831e2807d70cead7229177b6e660819bdb9e1625e42163d4b

Contents?: true

Size: 452 Bytes

Versions: 2

Compression:

Stored size: 452 Bytes

Contents

require_relative "./test_helper"

describe Heroku::QC::Autoscale do
  
  before do
    Heroku::QC::Autoscale.config do |c|
      c.api_key = "123456"
    end
  end
  
  subject { Heroku::QC::Autoscale }

  it "should have api_key" do
    subject.api_key.must_equal("123456")
  end

  it "should change api_key at runtime" do
    subject.api_key.must_equal("123456")
    subject.api_key = "654321"    
    subject.api_key.must_equal("654321")
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
heroku-qc-autoscale-0.0.2 test/autoscale_test.rb
heroku-qc-autoscale-0.0.1 test/autoscale_test.rb