Sha256: da0d109518712aa1eacf8835577e8fae34e07e46f29c8bd54ef875b02da6074b
Contents?: true
Size: 753 Bytes
Versions: 4
Compression:
Stored size: 753 Bytes
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 '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 class Schema::DSL < BasicObject def inspect to_ast.inspect end end class Schema::Rule < BasicObject def inspect to_ast.inspect end 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 end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
dry-validation-0.7.3 | spec/spec_helper.rb |
dry-validation-0.7.2 | spec/spec_helper.rb |
dry-validation-0.7.1 | spec/spec_helper.rb |
dry-validation-0.7.0 | spec/spec_helper.rb |