Permalink
Browse files

Refactors Rakefile for tests such that no environment is loaded.

  • Loading branch information...
1 parent 1367261 commit 6d7d79755a2c5abc1f2751cf2044b196d74bda45 @wilkie wilkie committed Feb 19, 2013
Showing with 6 additions and 3 deletions.
  1. +6 −3 Rakefile
View
@@ -2,6 +2,9 @@
# 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__)
-
-RstatUs::Application.load_tasks
+if ARGV[0].start_with?('test')
+ load 'lib/tasks/minitest.rake'
+else
+ require File.expand_path('../config/application', __FILE__)
+ RstatUs::Application.load_tasks
+end

0 comments on commit 6d7d797

Please sign in to comment.