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

Version Path
api_client-0.6.0-java spec/api_client/connection/request/logger_spec.rb
api_client-0.6.0 spec/api_client/connection/request/logger_spec.rb
api_client-0.5.26-java spec/api_client/connection/request/logger_spec.rb
api_client-0.5.26 spec/api_client/connection/request/logger_spec.rb
api_client-0.5.25-java spec/api_client/connection/request/logger_spec.rb
api_client-0.5.25 spec/api_client/connection/request/logger_spec.rb
api_client-0.5.24 spec/api_client/connection/request/logger_spec.rb
api_client-0.5.22 spec/api_client/connection/request/logger_spec.rb
api_client-0.5.21 spec/api_client/connection/request/logger_spec.rb
api_client-0.5.20 spec/api_client/connection/request/logger_spec.rb
api_client-0.5.19 spec/api_client/connection/request/logger_spec.rb
api_client-0.5.18 spec/api_client/connection/request/logger_spec.rb
api_client-0.5.17 spec/api_client/connection/request/logger_spec.rb
api_client-0.5.16 spec/api_client/connection/request/logger_spec.rb