mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Use Excon to do its own stubbing
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user