From 63cf334f3a5c4ad82e759f77de1f7846c5277b29 Mon Sep 17 00:00:00 2001 From: Yasuhito Takamiya Date: Thu, 19 Mar 2015 18:28:09 +0900 Subject: [PATCH] Refactoring. --- rspec.rake | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/rspec.rake b/rspec.rake index 3c52bf9..42521f1 100644 --- a/rspec.rake +++ b/rspec.rake @@ -1,3 +1,8 @@ -require 'rspec/core/rake_task' - -RSpec::Core::RakeTask.new +begin + require 'rspec/core/rake_task' + RSpec::Core::RakeTask.new +rescue LoadError + task :spec do + $stderr.puts 'RSpec is disabled' + end +end