From e9dbeeaa66fe94ba7dc196b651692df96272026a Mon Sep 17 00:00:00 2001 From: Ignacio Galindo Date: Tue, 23 Aug 2016 12:04:00 +0200 Subject: [PATCH] Load rspec-rails task manually only for development and test --- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 3f4fbcc..7a6a872 100644 --- a/Rakefile +++ b/Rakefile @@ -3,6 +3,6 @@ require File.expand_path('../config/application', __FILE__) -require 'rspec-rails' unless Rails.env.production? +require 'rspec-rails' if Rails.env.in?(%w{development test}) Rails.application.load_tasks