Sha256: c9757da43df043d2a32565f960207b761f38f3e186ac3d3980140dee18821da8

Contents?: true

Size: 517 Bytes

Versions: 1

Compression:

Stored size: 517 Bytes

Contents

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



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

namespace :spec do
  task :prepare do
    sh %{bundle update}
    sh %{cd spec/test_app; bundle update; bundle exec rails db:setup} # may need ;bundle exec rails db:setup as well
  end
  (1..7).each do |batch|
    RSpec::Core::RakeTask.new(:"batch#{batch}") do |t|
      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-mesh-1.0.0.lap28 Rakefile