Skip to content

Commit

Permalink
[TYPO] translitarate -> transliterate
Browse files Browse the repository at this point in the history
  • Loading branch information
movermeyer committed Jun 9, 2022
1 parent 0668a79 commit 3fb7abe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/i18n_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -379,15 +379,15 @@ def call(exception, locale, key, options); key; end
assert_equal I18n.default_locale, I18n.locale
end

test "I18n.translitarate handles I18n::ArgumentError exception" do
test "I18n.transliterate handles I18n::ArgumentError exception" do
I18n::Backend::Transliterator.stubs(:get).raises(I18n::ArgumentError)
I18n.exception_handler.expects(:call).raises(I18n::ArgumentError)
assert_raises(I18n::ArgumentError) {
I18n.transliterate("ąćó")
}
end

test "I18n.translitarate raises I18n::ArgumentError exception" do
test "I18n.transliterate raises I18n::ArgumentError exception" do
I18n::Backend::Transliterator.stubs(:get).raises(I18n::ArgumentError)
I18n.exception_handler.expects(:call).never
assert_raises(I18n::ArgumentError) {
Expand Down

0 comments on commit 3fb7abe

Please sign in to comment.