Stub the response to an external request

This commit is contained in:
taitus
2019-09-13 11:45:46 +02:00
committed by Javier Martín
parent 3bb7c9bc90
commit 11d8bd6a3d

View File

@@ -10,6 +10,9 @@ shared_examples "remotely_translatable" do |factory_name, path_name, path_argume
before do
Setting["feature.remote_translations"] = true
available_locales_response = %w[de en es fr pt zh-Hans]
expect(RemoteTranslations::Microsoft::AvailableLocales).to receive(:available_locales).at_most(3).times.
and_return(available_locales_response)
end
context "Button to request remote translation" do