Sha256: 0531cc23141bbf5688594024c5616a0a3dbd84a347f01d90e71188531f7d2437

Contents?: true

Size: 767 Bytes

Versions: 4

Compression:

Stored size: 767 Bytes

Contents

# encoding: utf-8

require File.expand_path(File.dirname(__FILE__) + '/../../test_helper')

class I18nApiChainTest < Test::Unit::TestCase
  def setup
    super
    I18n.backend = I18n::Backend::Chain.new(I18n::Backend::Simple.new, I18n.backend)
  end

  include Tests::Api::Basics
  include Tests::Api::Defaults
  include Tests::Api::Interpolation
  include Tests::Api::Link
  include Tests::Api::Lookup
  include Tests::Api::Pluralization
  include Tests::Api::Procs
  include Tests::Api::Localization::Date
  include Tests::Api::Localization::DateTime
  include Tests::Api::Localization::Time
  include Tests::Api::Localization::Procs

  define_method "test: make sure we use the Chain backend" do
    assert_equal I18n::Backend::Chain, I18n.backend.class
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
activesupport-2.3.6.pre lib/active_support/vendor/i18n-0.3.3/test/cases/api/chain_test.rb
i18n-0.3.3 test/cases/api/chain_test.rb
i18n-0.3.2 test/cases/api/chain_test.rb
i18n-0.3.1 test/cases/api/chain_test.rb