This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Too early call to Rails.env

  • Loading branch information...
1 parent c5c5fc4 commit 5ea5b3070e37bd866851f2661c30709a511763d7 @saulius saulius committed Aug 21, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 Rakefile
View
@@ -2,13 +2,13 @@
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
+require File.expand_path('../config/application', __FILE__)
+
if Rails.env.test?
require 'webmock/rspec'
WebMock.allow_net_connect!
end
-require File.expand_path('../config/application', __FILE__)
-
require 'ci/reporter/rake/rspec' if Rails.env.development? or Rails.env.test?
TradeTariffBackend::Application.load_tasks

0 comments on commit 5ea5b30

Please sign in to comment.