Sha256: 869fcedbc0a37554be72fb8e4732750ee5984182480a691117ad49b4d8d6afdb

Contents?: true

Size: 783 Bytes

Versions: 266

Compression:

Stored size: 783 Bytes

Contents

require 'test_helper'

I18n::Tests.setup_rufus_tokyo

class I18nKeyValueApiTest < Test::Unit::TestCase
  include I18n::Tests::Basics
  include I18n::Tests::Defaults
  include I18n::Tests::Interpolation
  include I18n::Tests::Link
  include I18n::Tests::Lookup
  include I18n::Tests::Pluralization
  # include Tests::Api::Procs
  include I18n::Tests::Localization::Date
  include I18n::Tests::Localization::DateTime
  include I18n::Tests::Localization::Time
  # include Tests::Api::Localization::Procs

  STORE = Rufus::Tokyo::Cabinet.new('*')

  def setup
    I18n.backend = I18n::Backend::KeyValue.new(STORE)
    super
  end

  test "make sure we use the KeyValue backend" do
    assert_equal I18n::Backend::KeyValue, I18n.backend.class
  end
end if defined?(Rufus::Tokyo::Cabinet)

Version data entries

266 entries across 236 versions & 47 rubygems

Version Path
dirty_history-0.6.4 dirty_history/ruby/1.9.1/gems/i18n-0.6.0/test/api/key_value_test.rb
challah-0.7.0 vendor/bundle/gems/i18n-0.6.0/test/api/key_value_test.rb
challah-0.7.0.pre2 vendor/bundle/gems/i18n-0.6.0/test/api/key_value_test.rb
classiccms-0.5.8 vendor/bundle/gems/i18n-0.6.0/test/api/key_value_test.rb
dirty_history-0.6.3 dirty_history/ruby/1.9.1/gems/i18n-0.6.0/test/api/key_value_test.rb
classiccms-0.5.7 vendor/bundle/gems/i18n-0.6.0/test/api/key_value_test.rb
classiccms-0.5.6 vendor/bundle/gems/i18n-0.6.0/test/api/key_value_test.rb
classiccms-0.5.5 vendor/bundle/gems/i18n-0.6.0/test/api/key_value_test.rb
challah-0.7.0.pre vendor/bundle/gems/i18n-0.6.0/test/api/key_value_test.rb
classiccms-0.5.2 vendor/bundle/gems/i18n-0.6.0/test/api/key_value_test.rb
classiccms-0.5.1 vendor/bundle/gems/i18n-0.6.0/test/api/key_value_test.rb
classiccms-0.5.0 vendor/bundle/gems/i18n-0.6.0/test/api/key_value_test.rb
classiccms-0.4.2 vendor/bundle/gems/i18n-0.6.0/test/api/key_value_test.rb
classiccms-0.4.1 vendor/bundle/gems/i18n-0.6.0/test/api/key_value_test.rb
classiccms-0.4.0 vendor/bundle/gems/i18n-0.6.0/test/api/key_value_test.rb
classiccms-0.3.9 vendor/bundle/gems/i18n-0.6.0/test/api/key_value_test.rb
challah-0.6.2 vendor/bundle/gems/i18n-0.6.0/test/api/key_value_test.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/i18n-0.6.0/test/api/key_value_test.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/i18n-0.6.0/test/api/key_value_test.rb
dirty_history-0.6.2 dirty_history/ruby/1.9.1/gems/i18n-0.6.0/test/api/key_value_test.rb