Changes needed to run in produciton

This commit is contained in:
Jason Denney
2013-06-02 21:50:22 -04:00
parent 2c548ff63c
commit 7c85e2901f
4 changed files with 26 additions and 18 deletions
+13 -9
View File
@@ -12,16 +12,20 @@ require File.expand_path('../config/application', __FILE__)
Velocipede::Application.load_tasks
namespace :spec do
desc 'Run all acceptance specs'
RSpec::Core::RakeTask.new(:acceptance => 'db:test:prepare') do |t|
t.pattern = '**/*.feature'
unless Rails.env.production?
namespace :spec do
desc 'Run all acceptance specs'
RSpec::Core::RakeTask.new(:acceptance => 'db:test:prepare') do |t|
t.pattern = '**/*.feature'
end
end
end
Rake.application.remove_task 'spec'
Rake.application.remove_task 'spec'
desc 'Run all specs'
RSpec::Core::RakeTask.new(:spec => 'db:test:prepare') do |t|
t.pattern = '**/*{_spec.rb,.feature}'
end
desc 'Run all specs'
RSpec::Core::RakeTask.new(:spec => 'db:test:prepare') do |t|
t.pattern = '**/*{_spec.rb,.feature}'
end