Sha256: 72968ef4e5f17961ec0150c16adb92d27f1b3092f9c0d9b63bc0464178cb79fe

Contents?: true

Size: 552 Bytes

Versions: 8

Compression:

Stored size: 552 Bytes

Contents

#!/usr/bin/env rake
require 'bundler/gem_tasks'

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), 'lib'))

require 'rspec/core'
require 'rspec/core/rake_task'

desc 'Run all specs in spec directory'
task :run_specs do
  core_result = RSpec::Core::Runner.run(['spec/integration', 'spec/unit'])
  RSpec.clear_examples

  Dir[SPEC_ROOT.join('shared/**/*.rb')].each(&method(:load))

  Dry::Validation.load_extensions(:monads, :struct)
  ext_result = RSpec::Core::Runner.run(['spec'])

  exit [core_result, ext_result].max
end

task default: :run_specs

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
dry-validation-0.13.3 Rakefile
dry-validation-0.13.2 Rakefile
dry-validation-0.13.1 Rakefile
dry-validation-0.12.3 Rakefile
dry-validation-0.13.0 Rakefile
dry-validation-0.12.2 Rakefile
dry-validation-0.12.1 Rakefile
dry-validation-0.12.0 Rakefile