Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't include rspec tasks in staging/production

  • Loading branch information...
commit aa7c8092ffdcf6828128631f08792ae392410482 1 parent 6c87cb1
@kytrinyx kytrinyx authored
Showing with 11 additions and 9 deletions.
  1. +11 −9 lib/generators/daemon_kit/rspec/templates/tasks/rspec.rake
View
20 lib/generators/daemon_kit/rspec/templates/tasks/rspec.rake
@@ -1,11 +1,13 @@
-require 'rspec'
-require 'rspec/core/rake_task'
+if ['test', 'development'].include?(DAEMON_ENV)
+ require 'rspec'
+ require 'rspec/core/rake_task'
-desc "Run the specs under spec/"
-RSpec::Core::RakeTask.new do |t|
- t.rspec_opts = ['--options', "spec/spec.opts"]
-end
+ desc "Run the specs under spec/"
+ RSpec::Core::RakeTask.new do |t|
+ t.rspec_opts = ['--options', "spec/spec.opts"]
+ end
-# Want other tests/tasks run by default?
-# Add them to the list
-task :default => [:spec] #, :features]
+ # Want other tests/tasks run by default?
+ # Add them to the list
+ task :default => [:spec] #, :features]
+end
Please sign in to comment.
Something went wrong with that request. Please try again.