Sha256: 952355f3ced659ab183642a20d240ca02c1e956675b7dd7816b4069db56025fd

Contents?: true

Size: 268 Bytes

Versions: 6

Compression:

Stored size: 268 Bytes

Contents

class FakeResponse < Struct.new(:status, :headers, :body)

  def initialize(args = nil)
    args ||= {}
    super(*[
      args[:status]  || Factory.integer,
      args[:headers] || Rack::Utils::HeaderHash.new,
      args[:body]    || [Factory.text]
    ])
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
deas-0.43.5 test/support/fake_response.rb
deas-0.43.4 test/support/fake_response.rb
deas-0.43.3 test/support/fake_response.rb
deas-0.43.2 test/support/fake_response.rb
deas-0.43.1 test/support/fake_response.rb
deas-0.43.0 test/support/fake_response.rb