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