Sha256: 7ecc51924be5ff5b2a30cc7f69a719f4e80f3bac7e017d646e1bb3e507e79778
Contents?: true
Size: 658 Bytes
Versions: 4
Compression:
Stored size: 658 Bytes
Contents
ENV["RACK_ENV"] = "test" if RUBY_ENGINE == "ruby" 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
dry-web-0.8.0 | spec/spec_helper.rb |
dry-web-0.7.1 | spec/spec_helper.rb |
dry-web-0.7.0 | spec/spec_helper.rb |
dry-web-0.6.0 | spec/spec_helper.rb |