2013-09-18 18:19:41 +02:00
|
|
|
begin
|
|
|
|
require 'rspec/core/rake_task'
|
2013-11-07 21:17:53 +01:00
|
|
|
task(:spec).clear
|
2013-09-18 18:19:41 +02:00
|
|
|
RSpec::Core::RakeTask.new(:spec)
|
|
|
|
task :default => :spec
|
2014-04-04 12:25:57 +02:00
|
|
|
|
|
|
|
# Use `rspec` to run a single test. When a test fails in rake but not
|
|
|
|
# with rspec, you can use the following to run a single test using rake:
|
2021-03-01 15:27:26 +01:00
|
|
|
# RSpec::Core::RakeTask.new('spec:foo') do |t|
|
|
|
|
# t.pattern = "spec/integration/foo_spec.rb"
|
|
|
|
# end
|
2013-09-18 18:19:41 +02:00
|
|
|
rescue LoadError
|
|
|
|
end
|