(re-)hide rspec task when rspect is not available.

This commit is contained in:
Matt Zukowski 2011-12-16 14:16:33 -05:00
Родитель 6c9f16b257
Коммит f063f15e9e
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -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