FIX: Use Excon to do its own stubbing

This commit is contained in:
Robin Ward
2017-05-22 18:19:20 -04:00
parent b51126dd5e
commit 80af54460a
2 changed files with 15 additions and 13 deletions

View File

@@ -124,7 +124,12 @@ Spork.prefork do
Discourse.clear_readonly!
I18n.locale = :en
Excon.defaults[:mock] = true
end
config.after(:each) do
WebMock.reset!
Excon.stubs.clear
end
class TestCurrentUserProvider < Auth::DefaultCurrentUserProvider