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.8.2 spec/middleware/request_store_spec.rb
pliny-0.8.1 spec/middleware/request_store_spec.rb
pliny-0.8.0 spec/middleware/request_store_spec.rb
pliny-0.7.3 spec/middleware/request_store_spec.rb
pliny-0.7.2 spec/middleware/request_store_spec.rb
pliny-0.7.1 spec/middleware/request_store_spec.rb
pliny-0.7.0 spec/middleware/request_store_spec.rb
pliny-0.6.3 spec/middleware/request_store_spec.rb
pliny-0.6.2 spec/middleware/request_store_spec.rb
pliny-0.6.1 spec/middleware/request_store_spec.rb
pliny-0.6.0 spec/middleware/request_store_spec.rb
pliny-0.5.0 spec/middleware/request_store_spec.rb