Sha256: 1f6177d511a1d94ccdcfd621ea4f100db0c083d7eae5b5bac55e0a4b0bea0938
Contents?: true
Size: 633 Bytes
Versions: 2
Compression:
Stored size: 633 Bytes
Contents
class RackApp attr_reader :last_value, :store_active def call(env) RequestStore.store[:foo] ||= 0 RequestStore.store[:foo] += 1 @last_value = RequestStore.store[:foo] @store_active = RequestStore.active? raise 'FAIL' if env[:error] [200, {}, ["response"]] end end class RackAppWithConstResponse RESPONSE = [200, {}, ["response"]] attr_reader :last_value, :store_active def call(env) RequestStore.store[:foo] ||= 0 RequestStore.store[:foo] += 1 @last_value = RequestStore.store[:foo] @store_active = RequestStore.active? raise 'FAIL' if env[:error] RESPONSE end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
blacklight-spotlight-3.6.0.beta8 | vendor/bundle/ruby/3.2.0/gems/request_store-1.7.0/test/test_helper.rb |
request_store-1.7.0 | test/test_helper.rb |