Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
AliSoftware authored Aug 13, 2021
1 parent 61147cf commit 8dfc9ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/fastlane/plugin/wpmreleasetoolkit/models/locales.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def all
#
# Those can be used in the rare cases where you need to find locales via codes other than the glotpress ones,
# like searching by android locale code(s) or google_play locale code(s).
# In most cases, prefer using the `Locales[…]` method instead ()with glotpress locale codes).
# In most cases, prefer using the `Locales[…]` method instead (with glotpress locale codes).
#
# @param [Array<String>, String] list of locale codes to search for, or single value for single result
# @return [Array<Locale>, Locale] list of found locales, or single locale if a single value was passed
Expand Down
2 changes: 1 addition & 1 deletion spec/locales_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

it 'raises if one of the locale codes passed was not found' do
expect do
described_class.send(method_sym, [fr_code, 'invalidcode', 'pt-br'])
described_class.send(method_sym, [fr_code, 'invalidcode', pt_code])
end.to raise_error(RuntimeError, "Unknown locale for #{key} code 'invalidcode'")
end
end
Expand Down

0 comments on commit 8dfc9ed

Please sign in to comment.