Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

minitest_tu_shim compatibility

#30

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

Reported by Matthias Hennemeyer · January 28th, 2009 @ 05:24 PM

State: resolved
Milestone: none
Assigned to: nobody

Activity

  1. James Mead
    James Mead
    • 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.

    [1] http://github.com/floehopper/moc...

    January 29th, 2009 @ 11:11 AM

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.