Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

only add rspec rake tasks if env is not production

  • Loading branch information...
commit ceb5585a581b6e5b54c9b7c53ac95a8eb8d11701 1 parent 1800925
@jonmagic authored
Showing with 8 additions and 6 deletions.
  1. +8 −6 Rakefile
View
14 Rakefile
@@ -1,18 +1,20 @@
require 'rubygems'
require 'bundler/setup'
-require 'rspec/core/rake_task'
task :console do
exec "irb -r ./lib/pdf_archive"
end
-desc "Run specs"
-task :spec do
- RSpec::Core::RakeTask.new(:spec) do |t|
- t.pattern = './spec/**/*_spec.rb'
+if ENV['RACK_ENV'] != 'production'
+ require 'rspec/core/rake_task'
+ desc "Run specs"
+ task :spec do
+ RSpec::Core::RakeTask.new(:spec) do |t|
+ t.pattern = './spec/**/*_spec.rb'
+ end
end
+ task :default => :spec
end
-task :default => :spec
require 'qu/tasks'
task :environment do
Please sign in to comment.
Something went wrong with that request. Please try again.