Permalink
Browse files

Don't include rspec tasks in staging/production

  • Loading branch information...
1 parent 6c87cb1 commit aa7c8092ffdcf6828128631f08792ae392410482 @kytrinyx kytrinyx committed Aug 17, 2012
Showing with 11 additions and 9 deletions.
  1. +11 −9 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

0 comments on commit aa7c809

Please sign in to comment.