Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flexmock raises "undefined method 'teardown'" on minitest #14

Closed
zhon opened this issue Mar 26, 2013 · 2 comments
Closed

flexmock raises "undefined method 'teardown'" on minitest #14

zhon opened this issue Mar 26, 2013 · 2 comments

Comments

@zhon
Copy link

zhon commented Mar 26, 2013

require "minitest/autorun"
require 'flexmock/test_unit'

class SimpleTest < MiniTest::Unit::TestCase
  def test_flexmock
    flexmock()
  end
end

results in the following:

undefined method `teardown' for class `Test::Unit::TestCase' (NameError)
from D:/tools/Ruby193/lib/ruby/gems/1.9.1/gems/flexmock-1.3.1/lib/flexmock/test_unit.rb:16:in `<module:Unit>'

This is the case for ruby1.9.3 and ruby2.0.0 with minitest 4.1.0

@zhon
Copy link
Author

zhon commented Mar 28, 2013

Of course the include method still works:

require "minitest/autorun"
require 'flexmock'

class SimpleTest < MiniTest::Unit::TestCase
  include FlexMock
# ...

@jimweirich
Copy link
Owner

There is no teardown in the Test::Unit::TestCase when using MiniTest. Fixed in 1.3.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants