Sha256: 8b35f470760aa3c2204be253ddeddfaab24755708efb02433883bb17815c9d79

Contents?: true

Size: 386 Bytes

Versions: 3

Compression:

Stored size: 386 Bytes

Contents

class TestApp
  include FlipFab::Helper

  attr_reader :request, :response, :params, :contextual_features

  def call env
    @request  = Rack::Request.new env
    @response = Rack::Response.new
    @params   = request.params

    @contextual_features = features

    request.cookies.each{|k,v| response.set_cookie k, v }
    [response.status, response.header, response.body]
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
flip_fab-1.0.1 spec/support/test_app.rb
flip_fab-1.0.0 spec/support/test_app.rb
flip_fab-0.0.1 spec/support/test_app.rb