Class

I18nSimpleBackendTranslateTest

Inheritance
< Test::Unit::TestCase
Included Modules
I18nSimpleBackendTestSetup

Methods

Instance

Visibility Signature
public test_given_no_keys_it_returns_the_default ()
public test_translate_an_array_of_keys_translates_all_of_them ()
public test_translate_calls_interpolate ()
public test_translate_calls_interpolate_including_count_as_a_value ()
public test_translate_calls_lookup_with_locale_given ()
public test_translate_calls_pluralize ()
public test_translate_given_a_symbol_as_a_default_translates_the_symbol ()
public test_translate_given_an_array_as_default_uses_the_first_match ()
public test_translate_given_an_array_of_inexistent_keys_it_raises_missing_translation_data ()
public test_translate_given_nil_as_a_locale_raises_an_argument_error ()
public test_translate_with_a_bogus_key_and_no_default_raises_missing_translation_data ()

Instance Method Detail

test_given_no_keys_it_returns_the_default()

test_translate_an_array_of_keys_translates_all_of_them()

test_translate_calls_interpolate()

test_translate_calls_interpolate_including_count_as_a_value()

test_translate_calls_lookup_with_locale_given()

test_translate_calls_pluralize()

test_translate_given_a_symbol_as_a_default_translates_the_symbol()

test_translate_given_an_array_as_default_uses_the_first_match()

test_translate_given_an_array_of_inexistent_keys_it_raises_missing_translation_data()

test_translate_given_nil_as_a_locale_raises_an_argument_error()

test_translate_with_a_bogus_key_and_no_default_raises_missing_translation_data()