From 955b9ea2b9eb0c8515ed94b919b0bb3be06db5b5 Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Thu, 3 May 2018 14:22:41 +1000 Subject: [PATCH] chore: modify spec task to run quick tests first --- tasks/rspec.rake | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tasks/rspec.rake b/tasks/rspec.rake index ab34c5e25..f4a7837bc 100644 --- a/tasks/rspec.rake +++ b/tasks/rspec.rake @@ -1,10 +1,12 @@ require 'rspec/core' require 'rspec/core/rake_task' -RSpec::Core::RakeTask.new(:spec) do |task| - task.pattern = 'spec/**/*_spec.rb' -end - RSpec::Core::RakeTask.new('spec:quick') do |task| task.rspec_opts = '--tag ~@no_db_clean --tag ~@migration' end + +RSpec::Core::RakeTask.new('spec:slow') do |task| + task.rspec_opts = '--tag @no_db_clean --tag @migration' +end + +task :spec => ['spec:quick', 'spec:slow']