diff --git a/Rakefile b/Rakefile index 52ad86b5..14d36fcc 100644 --- a/Rakefile +++ b/Rakefile @@ -7,5 +7,7 @@ require_relative "config/application" Rails.application.load_tasks -desc "Run all the tests" -task default: %i[spec standard] +if Rails.env.development? || Rails.env.test? + desc "Run all the tests" + task default: %i[spec standard] +end