test/test_processes.rb in heroku-api-0.3.11 vs test/test_processes.rb in heroku-api-0.3.12

- old
+ new

@@ -1,8 +1,8 @@ require File.expand_path("#{File.dirname(__FILE__)}/test_helper") -class TestProcesses < MiniTest::Unit::TestCase +class TestProcesses < Minitest::Test def test_get_ps with_app do |app_data| response = heroku.get_ps(app_data['name']) ps = response.body.first @@ -237,9 +237,19 @@ def test_put_workers_with_cedar assert_raises(Heroku::API::Errors::RequestFailed) do with_app('stack' => 'cedar') do |app_data| heroku.put_workers(app_data['name'], 2) end + end + end + + def test_put_formation + with_app do |app_data| + response = heroku.put_formation(app_data['name'], {"web" => "2X"}) + ps = response.body.first + + assert_equal(200, response.status) + assert_equal('2', ps['size']) end end end