Skip to content

Commit

Permalink
chore: modify spec task to run quick tests first
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed May 3, 2018
1 parent 82b59ef commit 955b9ea
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tasks/rspec.rake
Original file line number Diff line number Diff line change
@@ -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']

0 comments on commit 955b9ea

Please sign in to comment.