Sha256: 8e311c780c2bae2169f6920c9262c3d86a2b525524ba34291c76aadbc2b2f2d0
Contents?: true
Size: 590 Bytes
Versions: 1
Compression:
Stored size: 590 Bytes
Contents
require "test_helper" module Renderer; end class Renderer::TranslationTest < NicePartials::Test setup do I18n.backend.store_translations "en", { translations: { translated: { message: "message" }, nice_partials_translated: { message: "nice_partials" } } } end teardown { I18n.reload! } test "clean translation render" do render "translations/translated" assert_rendered "message" end test "translations insert prefix from originating partial" do render "translations/nice_partials_translated" assert_rendered "nice_partials" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nice_partials-0.1.9 | test/renderer/translation_test.rb |