Sha256: 48ebfe68e1e8df57b78084edb96f4f44fb545851c354b4b44d1bd4a20905d98f
Contents?: true
Size: 731 Bytes
Versions: 5
Compression:
Stored size: 731 Bytes
Contents
ENV["RACK_ENV"] = "test" if RUBY_ENGINE == "ruby" require "codeclimate-test-reporter" CodeClimate::TestReporter.start require "simplecov" SimpleCov.start do add_filter "/spec/" end end begin require 'byebug' rescue LoadError; end 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 "dry-web" module Test; end RSpec.configure do |config| config.disable_monkey_patching! 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
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
dry-web-0.5.0 | spec/spec_helper.rb |
dry-web-0.4.1 | spec/spec_helper.rb |
dry-web-0.4.0 | spec/spec_helper.rb |
dry-web-0.3.1 | spec/spec_helper.rb |
dry-web-0.3.0 | spec/spec_helper.rb |