Sha256: 6b2d6ce0dfe25c2573e6d7084321a2b1e0e4f61ccdf7f1e33b6b87486f79748c

Contents?: true

Size: 466 Bytes

Versions: 32

Compression:

Stored size: 466 Bytes

Contents

require "spec_helper"

describe Pliny::Middleware::RequestStore do
  def app
    Rack::Builder.new do
      use Rack::Lint
      use Pliny::Middleware::RequestStore, store: Pliny::RequestStore
      run Sinatra.new {
        get "/" do
          "hi"
        end
      }
    end
  end

  it "clears the store" do
    mock(Pliny::RequestStore).clear!
    get "/"
  end

  it "seeds the store" do
    mock(Pliny::RequestStore).seed.with_any_args
    get "/"
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
pliny-0.17.0 spec/middleware/request_store_spec.rb
pliny-0.16.3 spec/middleware/request_store_spec.rb
pliny-0.16.2 spec/middleware/request_store_spec.rb
pliny-0.16.1 spec/middleware/request_store_spec.rb
pliny-0.16.0 spec/middleware/request_store_spec.rb
pliny-0.15.1 spec/middleware/request_store_spec.rb
pliny-0.15.0 spec/middleware/request_store_spec.rb
pliny-0.14.2 spec/middleware/request_store_spec.rb
pliny-0.14.1 spec/middleware/request_store_spec.rb
pliny-0.14.0 spec/middleware/request_store_spec.rb
pliny-0.13.1 spec/middleware/request_store_spec.rb
pliny-0.13.0 spec/middleware/request_store_spec.rb
pliny-0.12.0 spec/middleware/request_store_spec.rb
pliny-0.11.2 spec/middleware/request_store_spec.rb
pliny-0.11.1 spec/middleware/request_store_spec.rb
pliny-0.11.0 spec/middleware/request_store_spec.rb
pliny-0.10.0 spec/middleware/request_store_spec.rb
pliny-0.9.2 spec/middleware/request_store_spec.rb
pliny-0.9.1 spec/middleware/request_store_spec.rb
pliny-0.9.0 spec/middleware/request_store_spec.rb