floehopper/mocha — Issue #57: undefined method `run' in >=0.10.1
Author: fguillen
Created: 2012-01-19 14:04:59+00:00
State: open

# mocha_test.rb
require "test/unit"
require "mocha"

class MochaTest < Test::Unit::TestCase
def test_mocha
assert(true)
end
end

$ rvm use 1.9.2@mocha_test
$ gem install mocha -v"0.10.2"

$ ruby mocha_test.rb
Loaded suite mocha_test
Started
/Users/fguillen/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/minitest/unit.rb:641:in `block (2 levels) in run_test_suites': undefined method `run' for # (NoMethodError)
[...]

$ gem uninstall mocha -v"0.10.2"
$ gem install mocha -v"0.10.0"

$ ruby mocha_test.rb
Loaded suite mocha_test
Started
.
Finished in 0.000506 seconds.

1 tests, 1 assertions, 0 failures, 0 errors, 0 skips