Class

I18nTest

Inheritance
< Test::Unit::TestCase

Methods

Instance

Visibility Signature
public setup ()
public test_can_set_backend ()
public test_can_set_default_locale ()
public test_can_set_exception_handler ()
public test_can_set_locale_to_thread_current ()
public test_delegates_localize_to_backend ()
public test_delegates_translate_to_backend ()
public test_localize_nil_raises_argument_error ()
public test_localize_object_raises_argument_error ()
public test_translate_given_a_bogus_key_raises_missing_translation_data ()
public test_translate_given_no_locale_uses_i18n_locale ()
public test_translate_on_nested_symbol_keys_works ()
public test_translate_with_array_as_scope_works ()
public test_translate_with_array_containing_dot_separated_strings_as_scope_works ()
public test_translate_with_dot_separated_key_array_and_scope_works ()
public test_translate_with_key_array_and_dot_separated_scope_works ()
public test_translate_with_nested_string_keys_works ()
public test_translate_with_options_using_scope_works ()
public test_uses_custom_exception_handler ()
public test_uses_default_locale_as_locale_by_default ()
public test_uses_en_us_as_default_locale_by_default ()
public test_uses_simple_backend_set_by_default ()

Instance Method Detail

setup()

test_can_set_backend()

test_can_set_default_locale()

test_can_set_exception_handler()

test_can_set_locale_to_thread_current()

test_delegates_localize_to_backend()

test_delegates_translate_to_backend()

test_localize_nil_raises_argument_error()

test_localize_object_raises_argument_error()

test_translate_given_a_bogus_key_raises_missing_translation_data()

def test_translate_given_no_args_raises_missing_translation_data

  assert_equal "translation missing: en, no key", I18n.t

end

test_translate_given_no_locale_uses_i18n_locale()

test_translate_on_nested_symbol_keys_works()

test_translate_with_array_as_scope_works()

test_translate_with_array_containing_dot_separated_strings_as_scope_works()

test_translate_with_dot_separated_key_array_and_scope_works()

test_translate_with_key_array_and_dot_separated_scope_works()

test_translate_with_nested_string_keys_works()

test_translate_with_options_using_scope_works()

test_uses_custom_exception_handler()

test_uses_default_locale_as_locale_by_default()

test_uses_en_us_as_default_locale_by_default()

test_uses_simple_backend_set_by_default()