Sha256: a4ce4f76d0644cf6ecf2ea2129dee8149ae39a29be84911d07c9f48de8a0871a
Contents?: true
Size: 904 Bytes
Versions: 3
Compression:
Stored size: 904 Bytes
Contents
# encoding: utf-8 if RUBY_ENGINE == "rbx" require "codeclimate-test-reporter" CodeClimate::TestReporter.start end begin require 'byebug' rescue LoadError; end require 'pathname' require 'rack/test' require 'slim' 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
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dry-web-roda-0.5.1 | spec/spec_helper.rb |
dry-web-roda-0.5.0 | spec/spec_helper.rb |
dry-web-roda-0.4.0 | spec/spec_helper.rb |