@Test public void convert_locales() { assertThat(JRubyI18n.toLocale("fr")).isEqualTo(Locale.FRENCH); assertThat(JRubyI18n.toLocale("fr-CH")).isEqualTo(new Locale("fr", "CH")); }
@Test public void default_locale_should_be_english() { assertThat(JRubyI18n.toLocale(null)).isEqualTo(Locale.ENGLISH); }
@Test public void shouldConvertLocales() { assertThat(JRubyI18n.toLocale("fr"), Is.is(Locale.FRENCH)); assertThat(JRubyI18n.toLocale("fr-CH"), Is.is(new Locale("fr", "CH"))); }