Ignores slow specs when executing rake tasks

This commit is contained in:
erwanlr
2019-11-05 20:11:03 +00:00
parent 4be3f17ae4
commit 1e868d10ca

View File

@@ -13,7 +13,11 @@ end
begin begin
require 'rspec/core/rake_task' require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
RSpec::Core::RakeTask.new(:spec) do |t|
t.rspec_opts = %w{--tag ~slow}
end
exec << :spec exec << :spec
rescue LoadError rescue LoadError
end end