test/test_helper.rb in heroku-qc-autoscale-0.0.2 vs test/test_helper.rb in heroku-qc-autoscale-0.0.3

- old
+ new

@@ -10,21 +10,21 @@ require 'time' require 'heroku-qc-autoscale' Dir[File.dirname(__FILE__) + "/support/**/*.rb"].each {|f| require f} -Heroku::QC::Autoscale.config do |c| +Autoscale.config do |c| c.api_key = "123456" c.app = "racehq-test" c.mock = true c.scale = [1, 15, 30, 40, 50] c.active = true end # borrowed from heroku-api test helper def with_app(params={}, &block) - params.merge!('name' => Heroku::QC::Autoscale.app) unless params.key?("name") - heroku = Heroku::Scaler.client + params.merge!('name' => Autoscale.app) unless params.key?("name") + heroku = Autoscale::Heroku.client begin data = heroku.post_app(params).body @name = data['name'] ready = false \ No newline at end of file