Sha256: a6d9f59d7ce7267b39402541e34eef6e4d2a064da0e481fcd137f4e2d1f7bda4
Contents?: true
Size: 601 Bytes
Versions: 33
Compression:
Stored size: 601 Bytes
Contents
require 'test_helper' class I18nGettextPluralKeysTest < I18n::TestCase def setup super I18n::Gettext.plural_keys[:zz] = [:value1, :value2] end test "Returns the plural keys of the given locale if present" do assert_equal I18n::Gettext.plural_keys(:zz), [:value1, :value2] end test "Returns the plural keys of :en if given locale not present" do assert_equal I18n::Gettext.plural_keys(:yy), [:one, :other] end test "Returns the whole hash with no arguments" do assert_equal I18n::Gettext.plural_keys, { :en => [:one, :other], :zz => [:value1, :value2] } end end
Version data entries
33 entries across 31 versions & 8 rubygems