░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
pplmvsvm
LOCATION:
/var/www/canvas/vendor/bundle/ruby/3.1.0/gems/request_store-1.5.1/test
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: test_helper.rb
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
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 middleware_test.rb
RB
2.3 KB
2023-09-24 03:48
EDIT
📄 request_store_test.rb
RB
1.9 KB
2023-09-24 03:48
EDIT
📄 test_helper.rb
RB
662 B
2023-09-24 03:48
EDIT