1
0
Fork 0
mirror of https://github.com/jnunemaker/httparty synced 2023-03-27 23:23:07 -04:00

Remove specific error check

Rspec warns that checks for specific errors are discouraged; as any
other error will be ignored. This allows the test to pass even if the
code is never actually run.

This change removes the check for a specific error and checks for any
error instead.
This commit is contained in:
John Hope 2018-02-28 19:18:34 +00:00
parent bd4a8a0790
commit 98688a58ee

View file

@ -66,7 +66,7 @@ RSpec.describe HTTParty::Response do
subject { described_class.new(request, @response_object, @parsed_response) }
it 'does not throw exception' do
expect{ subject }.not_to raise_error(HTTParty::ResponseError)
expect{ subject }.not_to raise_error
end
end
end