#30 ✓resolved
Matthias Hennemeyer

minitest_tu_shim compatibility

Reported by Matthias Hennemeyer | 2009-01-28 17:24:40 UTC

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.

* GitHub repository
* Documentation
* Mailing List

People watching this ticket

Attachments

Tags

Pages