radiant/example/features/support/env.rb in metry-2.0.5 vs radiant/example/features/support/env.rb in metry-2.1.0

- old
+ new

@@ -15,19 +15,23 @@ World(Test::Unit::Assertions) require 'rack/test' World(Rack::Test::Methods) +module CustomRackTestSession + def rack_test_session + @_rack_test_session ||= Rack::Test::Session.new(app, "www.example.com") + end +end +World(CustomRackTestSession) + $: << RAILS_ROOT + '/../../vendor/webrat/lib' require 'webrat' require 'webrat/rack_test' Webrat.configure do |config| config.mode = :rack_test end - -require 'metry' -Metry::Storage.predictable_keys = true def app ActionController::Dispatcher.new end