spec/request_spec.rb in metainspector-3.1.0 vs spec/request_spec.rb in metainspector-3.1.1
- old
+ new
@@ -37,10 +37,10 @@
FakeWeb.allow_net_connect = false
end
it "should handle socket errors" do
TCPSocket.stub(:open).and_raise(SocketError)
- logger.should receive(:<<).with(an_instance_of(Faraday::ConnectionFailed))
+ logger.should receive(:<<).with(an_instance_of(Faraday::Error::ConnectionFailed))
MetaInspector::Request.new(url('http://caca232dsdsaer3sdsd-asd343.org'), exception_log: logger)
end
end