Sha256: e28b1ab0687bc8eead8f955b0139fc16900228347a0c2394bf242c527b6220b8
Contents?: true
Size: 934 Bytes
Versions: 12
Compression:
Stored size: 934 Bytes
Contents
require "rspec/core" require "rspec/core/rake_task" RSpec::Core::RakeTask.new("spec:focus") do |task| task.rspec_opts = "--tag @focus" end RSpec::Core::RakeTask.new("spec:quick") do |task| task.rspec_opts = "--tag ~@no_db_clean --tag ~@migration --format progress" end RSpec::Core::RakeTask.new("regression") do |task| task.pattern = "regression/**{,/*/**}/*_spec.rb" task.rspec_opts = "--require ./regression/regression_helper.rb" end RSpec::Core::RakeTask.new("spec:slow") do |task| task.rspec_opts = "--tag @no_db_clean --tag @migration --format progress" end task :set_simplecov_command_to_spec_quick do ENV["SIMPLECOV_COMMAND_NAME"] = "spec:quick" end task :set_simplecov_command_to_spec_slow do ENV["SIMPLECOV_COMMAND_NAME"] = "spec:slow" end task "spec:quick" => ["set_simplecov_command_to_spec_quick"] task "spec:slow" => ["set_simplecov_command_to_spec_slow"] task :spec => ["spec:quick", "spec:slow"]
Version data entries
12 entries across 12 versions & 1 rubygems