Sha256: 08eccb5d5ff52dc6da40c51ae621b2a83f3c5962687084268da0799cc456cea6
Contents?: true
Size: 1.09 KB
Versions: 4
Compression:
Stored size: 1.09 KB
Contents
# encoding: utf-8 begin require 'byebug' rescue LoadError; end if RUBY_ENGINE == "rbx" require "codeclimate-test-reporter" CodeClimate::TestReporter.start end require 'dry-validation' require 'dry/core/constants' require 'ostruct' SPEC_ROOT = Pathname(__dir__) Dir[SPEC_ROOT.join('shared/**/*.rb')].each(&method(:require)) Dir[SPEC_ROOT.join('support/**/*.rb')].each(&method(:require)) include Dry::Validation include Dry::Core::Constants module Types include Dry::Types.module end Dry::Validation::Deprecations.configure do |config| config.logger = Logger.new(SPEC_ROOT.join('../log/deprecations.log')) end RSpec.configure do |config| config.disable_monkey_patching! config.after do if defined?(I18n) I18n.load_path = Dry::Validation.messages_paths.dup I18n.backend.reload! end end config.include PredicatesIntegration config.before do module Test def self.remove_constants constants.each { |const| remove_const(const) } self end end end config.after do Object.send(:remove_const, Test.remove_constants.name) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
dry-validation-0.10.3 | spec/spec_helper.rb |
dry-validation-0.10.2 | spec/spec_helper.rb |
dry-validation-0.10.1 | spec/spec_helper.rb |
dry-validation-0.10.0 | spec/spec_helper.rb |