Sha256: a2c8efb9730ed2422648f0f21994840cd2744ec273d5d27f0f1c2302265ecfb5

Contents?: true

Size: 768 Bytes

Versions: 1

Compression:

Stored size: 768 Bytes

Contents

require "bundler/gem_tasks"
require "rspec/core/rake_task"

task :part1 do
  (1..2).each { |batch| Rake::Task["spec:batch#{batch}"].invoke rescue nil }
end

task :part2 do
  (3..4).each { |batch| Rake::Task["spec:batch#{batch}"].invoke rescue nil }
end

task :part3 do
  (5..7).each { |batch| Rake::Task["spec:batch#{batch}"].invoke rescue nil }
end

task :spec do
  (1..7).each { |batch| Rake::Task["spec:batch#{batch}"].invoke rescue nil }
end

namespace :spec do
  task :prepare do
    sh %(cd spec/test_app; bundle exec rails db:setup)
  end
  (1..7).each do |batch|
    RSpec::Core::RakeTask.new(:"batch#{batch}") do |t|
      t.fail_on_error = false unless batch == 7
      t.pattern = "spec/batch#{batch}/**/*_spec.rb"
    end
  end
end

task :default => :spec

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hyper-model-1.0.alpha1.3 Rakefile