Sha256: 5bba187939dfe40fa40b9b7cfe4991f60d20978d7c0de12fb541c7dd7c983651
Contents?: true
Size: 524 Bytes
Versions: 14
Compression:
Stored size: 524 Bytes
Contents
require "spec_helper" describe ApiClient::Connection::Middlewares::Request::Logger do it "adds a oauth header to the request" do app = double io = StringIO.new logger = Logger.new(io) 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) io.string.should match("GET http://api.twitter.com") end end
Version data entries
14 entries across 14 versions & 1 rubygems