Rakefile
require 'rake'
require 'rspec/core/rake_task'
desc 'Default: run the specs and features.'
task default: 'spec:all'
namespace :spec do
desc 'Run all specs'
RSpec::Core::RakeTask.new('all') do |t|
t.pattern = 'spec/*_spec.rb'
end
desc 'Run fast specs'
RSpec::Core::RakeTask.new('fast') do |t|
t.rspec_opts = '--tag ~@speed:slow'
end
end