spec/httpi/httpi_spec.rb in httpi-0.9.7 vs spec/httpi/httpi_spec.rb in httpi-1.0.0

- old
+ new

@@ -231,11 +231,11 @@ context "using #{adapter}" do before { opts[:class].any_instance.expects(method) } it "logs that we're executing a request" do - HTTPI.expects(:log).with(:debug, "HTTPI executes HTTP #{method.to_s.upcase} using the #{adapter} adapter") + HTTPI.expects(:log).with("HTTPI executes HTTP #{method.to_s.upcase} using the #{adapter} adapter") client.request method, request, adapter end it "yields the HTTP client instance used for the request" do block = lambda { |http| http.be_a(client_class[adapter].call) } @@ -272,12 +272,12 @@ end end describe ".log" do it "logs the given messages" do - HTTPI.log_level = :debug - HTTPI.logger.expects(:debug).with("Log this") - HTTPI.log "Log", "this" + HTTPI.log_level = :info + HTTPI.logger.expects(:info).with("Log this") + HTTPI.log "Log this" end end end end