(re-)hide rspec task when rspect is not available.
This commit is contained in:
Родитель
6c9f16b257
Коммит
f063f15e9e
|
@ -1,10 +1,10 @@
|
|||
#begin
|
||||
begin
|
||||
require 'rspec/core/rake_task'
|
||||
desc 'Run RSpecs to confirm that all functionality is working as expected'
|
||||
RSpec::Core::RakeTask.new('spec') do |t|
|
||||
t.rspec_opts = ['--colour', '--format nested']
|
||||
t.pattern = 'spec/**/*_spec.rb'
|
||||
end
|
||||
#rescue LoadError
|
||||
# puts "Hiding spec tasks because RSpec is not available"
|
||||
#end
|
||||
rescue LoadError
|
||||
puts "Hiding spec tasks because RSpec is not available"
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче