minitest_tu_shim compatibility
Reported by Matthias Hennemeyer | January 28th, 2009 @ 05:24 PM
When running ruby 1.8 and using the minitest_tu_shim (sudo use_minitest yes), and you run the following:
require 'test/unit'
require 'rubygems'
require 'mocha'
class TestA < Test::Unit::TestCase
def test_a
obj = Object.new
obj.expects(:a)
obj.a
end
end
you will get errors. For example: NameError: uninitialized constant Test::Unit::TestCase::STARTED
This happens because mocha somehow can't detect that Test::Unit::TestCase is someone else now.
The patch fixed this.
Matthias
Comments and changes to this ticket
-
James Mead January 29th, 2009 @ 11:11 AM
- Tag set to bug-report
- State changed from new to resolved
Fixed in a slightly different way [1].
I'm marking this as resolved - please reopen it if you're not happy with the solution.
Thanks, James.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
A mocking & stubbing library for Ruby.
* <a href="http://github.com/floehopper/mocha">GitHub repository</a>
* <a href="http://mocha.rubyforge.org">Documentation</a>
* <a href="http://groups.google.com/group/mocha-developer">Mailing List</a>