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