Sha256: 9535a2c3c3eae94782c40eb399d87a3b7d83d686bf1dc8b652091f64e6feb646

Contents?: true

Size: 314 Bytes

Versions: 2

Compression:

Stored size: 314 Bytes

Contents

require 'minitest/autorun'

require 'request_store'

class MiddlewareTest < Minitest::Unit::TestCase
  def test_middleware_resets_store
    app = RackApp.new
    middleware = RequestStore::Middleware.new(app)

    middleware.call({})
    middleware.call({})

    assert_equal 1, RequestStore.store[:foo]
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
request_store-1.0.5 test/middleware_test.rb
request_store-1.0.3 test/middleware_test.rb