Permalink
Browse files

Fixes error: "uninitialized constant MiniTest::Unit::Guard::MinitestN…

…otifier (NameError)" in 1.9.x
  • Loading branch information...
1 parent a5479b1 commit ad4cb29c78ec27c3ede7b00b1785ab3836f431d3 @grimen committed Dec 9, 2011
View
2 lib/guard/minitest/runners/version_1_runner.rb
@@ -10,7 +10,7 @@ def run(args = [])
start = Time.now
run_without_guard(args)
duration = Time.now - start
- Guard::MinitestNotifier.notify(test_count, assertion_count, failures, errors, skips, duration) if GUARD_NOTIFY
+ ::Guard::MinitestNotifier.notify(test_count, assertion_count, failures, errors, skips, duration) if GUARD_NOTIFY
end
end
View
2 lib/guard/minitest/runners/version_2_runner.rb
@@ -11,7 +11,7 @@ def _run_anything(type)
start = Time.now
_run_anything_without_guard(type)
duration = Time.now - start
- Guard::MinitestNotifier.notify(test_count, assertion_count, failures, errors, skips, duration) if GUARD_NOTIFY
+ ::Guard::MinitestNotifier.notify(test_count, assertion_count, failures, errors, skips, duration) if GUARD_NOTIFY
end
rescue NameError
puts "*** WARN: if you use MiniTest 1, please add version option in your 'Guardfile`."

0 comments on commit ad4cb29

Please sign in to comment.