Skip to content

Commit

Permalink
fixed tests: now compatible with rails 3.0.3 way of reporting missing…
Browse files Browse the repository at this point in the history
… translations (dot instead of comma space as separator)
  • Loading branch information
tomash committed Dec 1, 2010
1 parent 833b68c commit 2ce0f69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/i18n/missing_translations_test.rb
Expand Up @@ -25,11 +25,11 @@ def setup

test "still returns the exception message for MissingTranslationData exceptions" do
result = I18n.send(:missing_translations_log_handler, @exception, @locale, @key, @options)
assert_equal 'translation missing: en, foo', result
assert_match /translation missing: en(\W+)foo/, result
end

test "logs the missing translation to I18n.missing_translations_logger" do
I18n.send(:missing_translations_log_handler, @exception, @locale, @key, @options)
assert_equal 'translation missing: en, foo', @logger
assert_match /translation missing: en(\W+)foo/, @logger
end
end

0 comments on commit 2ce0f69

Please sign in to comment.