Sha256: 75287aafd267d4417b0ce94132e2d7aabbf96ae5b077bde232db2b5160c85387

Contents?: true

Size: 477 Bytes

Versions: 10

Compression:

Stored size: 477 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 %(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

10 entries across 10 versions & 1 rubygems

Version Path
hyper-model-0.99.6 Rakefile
hyper-model-0.99.5 Rakefile
hyper-model-0.99.4 Rakefile
hyper-model-1.0.alpha1.2 Rakefile
hyper-model-1.0.alpha1.1 Rakefile
hyper-model-1.0.alpha1 Rakefile
hyper-model-0.99.3 Rakefile
hyper-model-0.99.2 Rakefile
hyper-model-0.99.1 Rakefile
hyper-model-0.99.0 Rakefile