spec/spec_helper.rb in dry-web-roda-0.5.1 vs spec/spec_helper.rb in dry-web-roda-0.6.0

- old
+ new

@@ -15,31 +15,10 @@ ENV['RACK_ENV'] = 'test' SPEC_ROOT = Pathname(__FILE__).dirname -Dir[SPEC_ROOT.join('support/*.rb').to_s].each { |f| require f } -Dir[SPEC_ROOT.join('shared/*.rb').to_s].each { |f| require f } - -require SPEC_ROOT.join('dummy/system/boot').to_s - -module Test; end - RSpec.configure do |config| config.disable_monkey_patching! - config.before(:suite) do - Dummy::Application.freeze - end - config.include Rack::Test::Methods, type: :request - config.include Helpers - - config.before do - @test_constants = Test.constants - end - - config.after do - added_constants = Test.constants - @test_constants - added_constants.each { |name| Test.send(:remove_const, name) } - end end