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:
parent
bd4a8a0790
commit
98688a58ee
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue