Skip to content
This repository has been archived by the owner on Jan 2, 2018. It is now read-only.

Commit

Permalink
Tweak a few test descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
tigrish committed Dec 3, 2013
1 parent 61f975b commit 0de3724
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/i18n_test.rb
Expand Up @@ -335,7 +335,7 @@ def call(exception, locale, key, options); key; end
assert_equal false, I18n.locale_available?(:klingon)
end

test "I18n.enforce_available_locales raises an I18n::InvalidLocale when the passed locale is unavailable" do
test "I18n.enforce_available_locales! raises an I18n::InvalidLocale when the passed locale is unavailable" do
begin
I18n.config.enforce_available_locales = true
assert_raise(I18n::InvalidLocale) { I18n.enforce_available_locales!(:klingon) }
Expand All @@ -344,7 +344,7 @@ def call(exception, locale, key, options); key; end
end
end

test "I18n.enforce_available_locales does nothing when the passed locale is available" do
test "I18n.enforce_available_locales! does nothing when the passed locale is available" do
I18n.available_locales = [:en, :de]
begin
I18n.config.enforce_available_locales = true
Expand Down

0 comments on commit 0de3724

Please sign in to comment.