Sha256: 85666bfd4c65f542c97593b2944bc094dbf25edd8035a0c03c80eae69d07cfc7
Contents?: true
Size: 711 Bytes
Versions: 1
Compression:
Stored size: 711 Bytes
Contents
require "bundler/gem_tasks" require "rake/testtask" require "rubocop/rake_task" require "dry/types/version" task default: %i[test] TEST_WITH_OLD_AND_NEW_API = %w[ validation/dry_validation call composition contract errors inherit module reform save skip_if populate validate form ].freeze def dry_v_test_files api = Gem::Version.new(Dry::Types::VERSION).to_s.split('.').first.to_i >= 1 ? "new" : "old" TEST_WITH_OLD_AND_NEW_API.map { |file| "test/#{file}_#{api}_api.rb" } end Rake::TestTask.new(:test) do |test| test.libs << "test" test.test_files = FileList["test/*_test.rb"] + FileList["test/validation/*_test.rb"] + dry_v_test_files test.verbose = true end RuboCop::RakeTask.new(:rubocop)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
reform-2.3.1 | Rakefile |