FIX: Reset the WebMock after before every test

This commit is contained in:
Robin Ward 2017-05-22 17:52:13 -04:00
parent 9dddb81cf6
commit b51126dd5e
2 changed files with 1 additions and 8 deletions

View File

@ -18,14 +18,6 @@ describe FinalDestination do
}
end
before do
WebMock.reset!
end
after do
WebMock.reset!
end
let(:doc_response) do
{ body: "<html>document</html>",
headers: { "Content-Type" => "text/html" } }

View File

@ -124,6 +124,7 @@ Spork.prefork do
Discourse.clear_readonly!
I18n.locale = :en
WebMock.reset!
end
class TestCurrentUserProvider < Auth::DefaultCurrentUserProvider