#30 ✓resolved
Matthias Hennemeyer

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

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.

New-ticket Create new ticket

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>

People watching this ticket

Attachments

Tags

Pages