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

undefined method `reset_executed_requests!' for WebMock:Module in rspec test #782

Open
wgordon17 opened this issue Oct 24, 2018 · 5 comments

Comments

@wgordon17
Copy link

Following the documentation, I've added require 'webmock/rspec' to my helper. But, when trying to use WebMock.reset_executed_requests!, I get the error message in the title.

Any help would be appreciated!

@wgordon17
Copy link
Author

But thankfully this works fine WebMock::RequestRegistry.instance.reset!

Taken from:

WebMock::RequestRegistry.instance.reset!

@bblimke
Copy link
Owner

bblimke commented Oct 24, 2018

@wgordon17 you're right. thank you for pointing that out!

@wgordon17
Copy link
Author

@bblimke Ok, so this is expected? Is it always expected, or just in the way I import for rspec?

@bblimke
Copy link
Owner

bblimke commented Oct 24, 2018

That is not expected. It's a bug.

@oliakremmyda
Copy link
Collaborator

Sorry, I will check it!

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

3 participants