Sha256: 84f7c1f787a3a90dc3dd2fce681177693504bf59bc12a5f1c9b513f1a9f1b32e
Contents?: true
Size: 532 Bytes
Versions: 19
Compression:
Stored size: 532 Bytes
Contents
require "spec_helper" describe ApiClient::Connection::Middlewares::Request::Logger do it "adds a oauth header to the request" do app = mock logger = FakeLogger.new instance = ApiClient::Connection::Middlewares::Request::Logger.new(app, logger) env = { :url => "http://api.twitter.com", :request_headers => {}, :method => 'get' } app.should_receive(:call).with(env) instance.call(env) logger.history.first.should == "GET http://api.twitter.com: 0.0000 seconds" end end
Version data entries
19 entries across 19 versions & 1 rubygems