From 98688a58eec152154f4eb38267878ac526e3de46 Mon Sep 17 00:00:00 2001 From: John Hope Date: Wed, 28 Feb 2018 19:18:34 +0000 Subject: [PATCH] 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. --- spec/httparty/response_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/httparty/response_spec.rb b/spec/httparty/response_spec.rb index 845adca..b9aff08 100644 --- a/spec/httparty/response_spec.rb +++ b/spec/httparty/response_spec.rb @@ -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