Rename AvailableLocales.available_locales method

I'm not sure whether we should rename the class instead. I'm renaming
the method because renaming the class would require more changes.
This commit is contained in:
Javi Martín
2023-07-19 16:21:39 +02:00
parent 36c3ba6601
commit 8898c30f55
6 changed files with 10 additions and 10 deletions

View File

@@ -11,7 +11,7 @@ shared_examples "remotely_translatable" do |factory_name, path_name, path_argume
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(4).times
.to receive(:locales).at_most(4).times
.and_return(available_locales_response)
allow(Rails.application.secrets).to receive(:microsoft_api_key).and_return("123")
end