Permalink
Browse files

modified rakefile to circumvent rspec on heroku

  • Loading branch information...
1 parent 6d61f34 commit e6ce16bc1792e651b74d29b3fd4c066a5a19d3f5 Elise Worthy committed Apr 14, 2012
Showing with 9 additions and 6 deletions.
  1. +1 −0 Gemfile
  2. +8 −6 Rakefile
View
@@ -7,6 +7,7 @@ gem 'rails3-generators'
gem "twitter-bootstrap-rails"
gem 'sorcery'
gem 'cancan'
+
# Gems used only for assets and not required
# in production environments by default.
group :assets do
View
@@ -6,12 +6,14 @@ require File.expand_path('../config/application', __FILE__)
StoreEngine::Application.load_tasks
-begin
- require 'rspec/core/rake_task'
+unless Rails.env.production?
+ begin
+ require 'rspec/core/rake_task'
- task :default => :spec
+ task :default => :spec
- RSpec::Core::RakeTask.new("spec:acceptance") do |t|
- t.rspec_opts = "--tag acceptance"
- end
+ RSpec::Core::RakeTask.new("spec:acceptance") do |t|
+ t.rspec_opts = "--tag acceptance"
+ end
+ end
end

0 comments on commit e6ce16b

Please sign in to comment.