Permalink
Browse files

Adds a global variable than can be used to disable test autorunning.

  • Loading branch information...
1 parent 9e2d157 commit 7d215a56085ecfc802b7259e659ba159738f4396 @AndrewO committed Sep 11, 2011
Showing with 3 additions and 1 deletion.
  1. +1 −0 lib/muse/commands.rb
  2. +2 −1 test/test_helper.rb
@@ -25,6 +25,7 @@ module Muse
end
command "load-test-env", "Loads the test env by eval'ing the test_file's preamble" do
+ target.eval("$MUSE_SAYS_NOT_TO_AUTORUN = true")
context = target.eval("self")
test_file = Muse::TestFile.new(context)
View
@@ -8,7 +8,8 @@
require "minitest/spec"
require "wrong/adapters/minitest"
-require "minitest/autorun"
+# Muse loads the this file when the test env is loaded, but we don't realy want to autorun.
+require "minitest/autorun" unless $MUSE_SAYS_NOT_TO_AUTORUN
class MiniTest::Spec
include Wrong

0 comments on commit 7d215a5

Please sign in to comment.