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

Unable to use require 'webmock/test_unit' after version 3.9.5 #963

Open
rmichelli opened this issue Dec 29, 2021 · 2 comments
Open

Unable to use require 'webmock/test_unit' after version 3.9.5 #963

rmichelli opened this issue Dec 29, 2021 · 2 comments

Comments

@rmichelli
Copy link

require 'webmock/test_unit' line throws this error

/src/.gem/ruby/gems/webmock-3.14.0/lib/webmock/test_unit.rb:11:in `<class:TestCase>': undefined local variable or method `teardown' for Test::Unit::TestCase:Class (NameError)

using:
rails LTS 3.2.22.25
ruby 2.7.1p83

Problem appears to be this line introduced in this pr.

current workaround is to restrict version to 3.9.4

@bblimke
Copy link
Owner

bblimke commented Dec 29, 2021

@rmichelli any chance you have some old version of test-unit gem loaded?

@rmichelli
Copy link
Author

Yes @bblimke - test-unit gem was locked at 1.2.3
Updating it appears to have resolved the issue
Thanks for the feedback

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