Sha256: e3bd2d6ee1f6e302e114f0d542a5de2705032b97d41f53daec412b681de75946

Contents?: true

Size: 1.68 KB

Versions: 4

Compression:

Stored size: 1.68 KB

Contents

require File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "test_helper.rb"))

module Rich
  module I18n
    module Test
      module Locales
        module NL

          class InternationalizationTest < ActiveSupport::TestCase
            setup do
              include Setup
              I18n.locale = Engine.init(self)
            end
      
            test "dutch_translations" do
              assert_equal "huis"  , "house".t
              assert_equal "straat", "street".t
              assert_equal "vraag" , "question".t
              assert_equal "vraag" , "word.question".t
            end
      
            test "dutch_cased_translations" do
              assert_equal "meer"   , "more".t
              assert_equal "Huis"   , "House".t
              # assert_equal "Straten", "Streets".t
              # assert_equal "VRAGEN" , "QUESTIONS".t
            end
      
            test "dutch_combined_translations" do
              assert_equal "vraag & antwoord"   , "question & answer".t
              assert_equal "Vraag & antwoord"   , "Question & answer".t
              assert_equal "Man / Vrouw"        , "Male / Female".t
              assert_equal "één huis"           , "one house".t
              # assert_equal "Één huis"           , "One house".t
              # assert_equal "Meer huizen"        , "More houses".t
              # assert_equal "MEER STRATEN"       , "MORE STREETS".t
              # assert_equal "meer vragen"        , "more questions".t
              # assert_equal "meer vragen"        , "more questions".t
              # assert_equal "Vragen & Antwoorden", "Questions & Answers".t
            end
          end
        
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rich_i18n-1.2.3 test/locales/nl/internationalization_test.rb
rich_i18n-1.2.2 test/locales/nl/internationalization_test.rb
rich_i18n-1.2.1 test/locales/nl/internationalization_test.rb
rich_i18n-1.2.0 test/locales/nl/internationalization_test.rb