test/test_processes.rb in heroku-api-0.1.2 vs test/test_processes.rb in heroku-api-0.1.3
- old
+ new
@@ -130,11 +130,11 @@
assert_equal("1", response.body)
end
end
def test_post_ps_scale_type_not_found
- assert_raises(Heroku::API::Errors::Error) do
+ assert_raises(Heroku::API::Errors::RequestFailed) do
with_app('stack' => 'cedar') do |app_data|
heroku.post_ps_scale(app_data['name'], 'run', 2)
end
end
end
@@ -147,19 +147,19 @@
assert_equal("2", response.body)
end
end
def test_post_ps_scale_without_cedar
- assert_raises(Heroku::API::Errors::Error) do
+ assert_raises(Heroku::API::Errors::RequestFailed) do
with_app do |app_data|
heroku.post_ps_scale(app_data['name'], 'web', 2)
end
end
end
def test_post_ps_stop
- assert_raises(Heroku::API::Errors::Error) do
+ assert_raises(Heroku::API::Errors::RequestFailed) do
with_app do |app_data|
heroku.post_ps_stop(app_data['name'], {})
end
end
end
@@ -206,11 +206,11 @@
heroku.put_dynos(random_name, 1)
end
end
def test_put_dynos_with_cedar
- assert_raises(Heroku::API::Errors::Error) do
+ assert_raises(Heroku::API::Errors::RequestFailed) do
with_app('stack' => 'cedar') do |app_data|
heroku.put_dynos(app_data['name'], 2)
end
end
end
@@ -233,10 +233,10 @@
heroku.put_workers(random_name, 1)
end
end
def test_put_workers_with_cedar
- assert_raises(Heroku::API::Errors::Error) do
+ assert_raises(Heroku::API::Errors::RequestFailed) do
with_app('stack' => 'cedar') do |app_data|
heroku.put_workers(app_data['name'], 2)
end
end
end