Sha256: db5d355c4529973778b8a069c4524dd5cbef2ed2be9d301dd4c51457a593e10e

Contents?: true

Size: 906 Bytes

Versions: 4

Compression:

Stored size: 906 Bytes

Contents

# encoding: utf-8

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

class I18nFallbacksApiTest < Test::Unit::TestCase
  class Backend
    include I18n::Backend::Base
    include I18n::Backend::Fallbacks
  end

  def setup
    I18n.backend = Backend.new
    super
  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 a backend with Fallbacks included" do
    assert_equal Backend, I18n.backend.class
  end
  
  # links: test that keys stored on one backend can link to keys stored on another backend
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/fallbacks_test.rb
i18n-0.3.3 test/cases/api/fallbacks_test.rb
i18n-0.3.2 test/cases/api/fallbacks_test.rb
i18n-0.3.1 test/cases/api/fallbacks_test.rb