module YaksHTML

Constants

RACK_ENV

This is a bit of a hack. The only way to add custom rack env entries to Capybara/Rack::Test is through the driver options (see Capybara.register_driver below). However this is only executed once, so throughout the whole test suite the same instance of the hash we pass will be used. To make it a bit easier to set/reset this we add this layer of indirection. Now what we pass the driver looks like a hash, but we can point it to a new hash with RACK_ENV.__setobj__({})