Sha256: 61b1a0f274349249caeae260f7cfb60461d5ef38b1d6d180a977cfd4b867a5c3

Contents?: true

Size: 506 Bytes

Versions: 1

Compression:

Stored size: 506 Bytes

Contents

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



task :spec do
  (1..5).each { |batch| Rake::Task["spec:batch#{batch}"].invoke }
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..5).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.lap23 Rakefile