Skip to content

Commit

Permalink
Don't include rspec tasks in staging/production
Browse files Browse the repository at this point in the history
  • Loading branch information
kytrinyx committed Aug 17, 2012
1 parent 6c87cb1 commit aa7c809
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions 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.