Sha256: d05d8414cd78e740a5a877db0743963f7d035aa930d4c2eb0c488051f447e60c

Contents?: true

Size: 201 Bytes

Versions: 3

Compression:

Stored size: 201 Bytes

Contents

class MockApp
  def initialize(*args)
    @status, @headers, @body = args
    @status = 200
    @headers ||= {}
    @body = Array(@body)
  end

  def call(env)
    [@status, @headers, @body]
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rack-encoding_guard-0.1.2 spec/support/mock_app.rb
rack-encoding_guard-0.1.1 spec/support/mock_app.rb
rack-encoding_guard-0.1.0 spec/support/mock_app.rb