Sha256: 0f0d59ce482a797d83f7b3e1ace693e7284075ac1105594f0c1e1db1f3b08006
Contents?: true
Size: 785 Bytes
Versions: 5
Compression:
Stored size: 785 Bytes
Contents
if RUBY_ENGINE == 'ruby' require 'simplecov' SimpleCov.start do add_filter "/spec/" end end begin require 'pry-byebug' rescue LoadError; end SPEC_ROOT = Pathname(__FILE__).dirname require 'erb' require 'slim' # Prefer plain ERB processor rather than erubis (which has problems on JRuby) require 'tilt' Tilt.register 'erb', Tilt::ERBTemplate require 'dry-view' module Test def self.remove_constants constants.each(&method(:remove_const)) end end RSpec.configure do |config| config.disable_monkey_patching! config.order = :random Kernel.srand config.seed config.after do Test.remove_constants end end RSpec::Matchers.define :part_including do |data| match { |actual| data.all? { |(key, val)| actual._data[key] == val } } end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
dry-view-0.5.3 | spec/spec_helper.rb |
dry-view-0.5.2 | spec/spec_helper.rb |
dry-view-0.5.1 | spec/spec_helper.rb |
dry-view-0.5.0 | spec/spec_helper.rb |
dry-view-0.4.0 | spec/spec_helper.rb |