test/unit/peddler/test_client.rb in peddler-1.3.0 vs test/unit/peddler/test_client.rb in peddler-1.4.0

- old
+ new

@@ -136,11 +136,11 @@ end def test_error_callback_on_class Excon.stub({}, status: 503) - assert_raises(Excon::Errors::ServiceUnavailable) do + assert_raises(Excon::Error::ServiceUnavailable) do @client.run end @klass.on_error do |e| assert_equal 503, e.response.status @@ -151,11 +151,11 @@ end def test_error_callback_on_instance Excon.stub({}, status: 503) - assert_raises(Excon::Errors::ServiceUnavailable) do + assert_raises(Excon::Error::ServiceUnavailable) do @client.run end @client.on_error do |e| assert_equal 503, e.response.status @@ -175,10 +175,10 @@ klass = Class.new(Null::Client) other_client = klass.new other_client.configure_with_mock_data! other_client.operation('Foo') - assert_raises(Excon::Errors::ServiceUnavailable) do + assert_raises(Excon::Error::ServiceUnavailable) do other_client.run end Excon.stubs.clear end