Sha256: a2836e6478e1b570c36aec8660f90cf11319412037342dd55d47bdfa123506cd
Contents?: true
Size: 571 Bytes
Versions: 5
Compression:
Stored size: 571 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), "..", "test_helper.rb")) module Core class EnrichedStringTest < ActiveSupport::TestCase setup do I18n.locale = Rich::I18n::Engine.init :nl end test "current locale" do assert_equal I18n.locale, :nl end test "to_output" do Rich::I18n::Engine.enable_enriched_output = true # assert_equal "<i18n data-value=\"meer\" data-key=\"word.more\" data-derivative_key=\"More\" data-locale=\"nl\" data-i18n_translation=\"Meer\"></i18n>", "More".t.to_output end end end
Version data entries
5 entries across 5 versions & 1 rubygems