test/test_addons.rb in heroku-api-0.1.2 vs test/test_addons.rb in heroku-api-0.1.3

- old
+ new

@@ -2,19 +2,19 @@ class TestAddons < MiniTest::Unit::TestCase def test_delete_addon_addon_not_found with_app do |app_data| - assert_raises(Heroku::API::Errors::Error) do + assert_raises(Heroku::API::Errors::RequestFailed) do heroku.delete_addon(app_data['name'], random_name) end end end def test_delete_addon_addon_not_installed with_app do |app_data| - assert_raises(Heroku::API::Errors::Error) do + assert_raises(Heroku::API::Errors::RequestFailed) do heroku.delete_addon(app_data['name'], 'custom_domains:basic') end end end @@ -103,29 +103,29 @@ end end def test_post_addon_addon_already_installed with_app do |app_data| - assert_raises(Heroku::API::Errors::Error) do + assert_raises(Heroku::API::Errors::RequestFailed) do heroku.post_addon(app_data['name'], 'logging:basic') heroku.post_addon(app_data['name'], 'logging:basic') end end end def test_post_addon_addon_type_already_installed with_app do |app_data| - assert_raises(Heroku::API::Errors::Error) do + assert_raises(Heroku::API::Errors::RequestFailed) do heroku.post_addon(app_data['name'], 'logging:basic') heroku.post_addon(app_data['name'], 'logging:expanded') end end end def test_post_addon_addon_not_found with_app do |app_data| - assert_raises(Heroku::API::Errors::Error) do + assert_raises(Heroku::API::Errors::RequestFailed) do heroku.post_addon(app_data['name'], random_name) end end end @@ -148,27 +148,27 @@ end end def test_put_addon_addon_already_installed with_app do |app_data| - assert_raises(Heroku::API::Errors::Error) do + assert_raises(Heroku::API::Errors::RequestFailed) do heroku.post_addon(app_data['name'], 'logging:basic') heroku.put_addon(app_data['name'], 'logging:basic') end end end def test_put_addon_addon_not_found with_app do |app_data| - assert_raises(Heroku::API::Errors::Error) do + assert_raises(Heroku::API::Errors::RequestFailed) do heroku.put_addon(app_data['name'], random_name) end end end def test_put_addon_addon_type_not_installed with_app do |app_data| - assert_raises(Heroku::API::Errors::Error) do + assert_raises(Heroku::API::Errors::RequestFailed) do heroku.put_addon(app_data['name'], 'releases:basic') end end end