Sha256: d1100035b6b0f3b33e844e09f59e29079d3d1e3b9aecd2a135ce22e1d492d0d2

Contents?: true

Size: 494 Bytes

Versions: 3

Compression:

Stored size: 494 Bytes

Contents

require 'sinatra'

class FakeApp < Sinatra::Application
  get '/dump' do
    "foo=#{request.cookies['foo']}"
  end

  get '/default' do
    response.set_cookie "foo", :value => "bar"
  end

  get '/path' do
    response.set_cookie "foo", :value => "bar", :path => "/path"
  end

  get '/expires' do
    response.set_cookie "foo", :value => "bar", :expires => Time.now + 1
  end

  get '/multiple_cookies' do
    "foo=#{request.cookies['foo']};language=#{request.cookies['language']}"
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
faraday-cookie_jar-0.0.7 spec/support/fake_app.rb
faraday-cookie_jar-0.0.6 spec/support/fake_app.rb
faraday-cookie_jar-0.0.5 spec/support/fake_app.rb