Sha256: 1be1af84cf7fcb4d91916693d8afb99afa08a3c46167ad2231a7eec0c14ed9e7

Contents?: true

Size: 481 Bytes

Versions: 3

Compression:

Stored size: 481 Bytes

Contents

# encoding: utf-8

begin
  require 'byebug'
rescue LoadError; end

require 'dry-validation'

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

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

3 entries across 3 versions & 1 rubygems

Version Path
dry-validation-0.5.0 spec/spec_helper.rb
dry-validation-0.4.1 spec/spec_helper.rb
dry-validation-0.4.0 spec/spec_helper.rb