guard/guard-test — Issue #20: No method error - Rails 2.3.4, no bundler
Author: robmomary
Created: 2011-12-01 22:55:37+00:00
State: open

I have an older app that i tried using guard on to monitor tests. When I would run "guard" from my app I would get the following error:

guard_test_runner.rb:39: undefined method `register_runner' for Test::Unit::AutoRunner:Class (NoMethodError)

I solved it by adding the following lines to the top of: lib/guard/test/guard_test_runner.rb

# encoding: utf-8
require "rubygems"
require "test/unit/version"

Just fyi in case that helps somebody struggling with this error.