Sha256: 630d0982cd96811ef29eede9ac9dc1d3fd4d6ac7c3c2bb65ae95bbcade5c68e8

Contents?: true

Size: 1.58 KB

Versions: 266

Compression:

Stored size: 1.58 KB

Contents

require 'test_helper'

class I18nMemoizeBackendWithSimpleApiTest < 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 I18n::Tests::Procs
  include I18n::Tests::Localization::Date
  include I18n::Tests::Localization::DateTime
  include I18n::Tests::Localization::Time
  include I18n::Tests::Localization::Procs

  class MemoizeBackend < I18n::Backend::Simple
    include I18n::Backend::Memoize
  end

  def setup
    I18n.backend = MemoizeBackend.new
    super
  end

  test "make sure we use the MemoizeBackend backend" do
    assert_equal MemoizeBackend, I18n.backend.class
  end
end

I18n::Tests.setup_rufus_tokyo

class I18nMemoizeBackendWithKeyValueApiTest < 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 I18n::Tests::Localization::Date
  include I18n::Tests::Localization::DateTime
  include I18n::Tests::Localization::Time

  # include I18n::Tests::Procs
  # include I18n::Tests::Localization::Procs

  class MemoizeBackend < I18n::Backend::KeyValue
    include I18n::Backend::Memoize
  end

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

  def setup
    I18n.backend = MemoizeBackend.new(STORE)
    super
  end

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

Version data entries

266 entries across 236 versions & 47 rubygems

Version Path
logstash-filter-cache-redis-0.1.0 vendor/bundle/jruby/1.9/gems/i18n-0.6.9/test/api/memoize_test.rb
logstash-filter-csharp-0.1.0 vendor/bundle/jruby/2.3.0/gems/i18n-0.6.9/test/api/memoize_test.rb
logstash-filter-htmlentities-0.1.0 vendor/bundle/jruby/1.9/gems/i18n-0.6.9/test/api/memoize_test.rb
logstash-output-icinga-1.0.0 vendor/jruby/1.9/gems/i18n-0.6.9/test/api/memoize_test.rb
logstash-filter-zabbix-0.1.2 vendor/bundle/jruby/1.9/gems/i18n-0.6.9/test/api/memoize_test.rb
logstash-filter-zabbix-0.1.1 vendor/bundle/jruby/1.9/gems/i18n-0.6.9/test/api/memoize_test.rb
logstash-input-fifo-0.9.1 vendor/bundle/jruby/1.9/gems/i18n-0.6.9/test/api/memoize_test.rb
logstash-input-fifo-0.9.0 vendor/bundle/jruby/1.9/gems/i18n-0.6.9/test/api/memoize_test.rb
logstash-input-salesforce-3.0.0 vendor/jruby/1.9/gems/i18n-0.6.9/test/api/memoize_test.rb
ivanvc-logstash-input-s3-3.1.1.4 vendor/local/gems/i18n-0.6.9/test/api/memoize_test.rb
ivanvc-logstash-input-s3-3.1.1.3 vendor/local/gems/i18n-0.6.9/test/api/memoize_test.rb
ivanvc-logstash-input-s3-3.1.1.2 vendor/local/gems/i18n-0.6.9/test/api/memoize_test.rb
logstash-filter-delta-1.1.0 vendor/bundle/jruby/2.2.0/gems/i18n-0.6.9/test/api/memoize_test.rb
logstash-filter-delta-1.0.1 vendor/bundle/jruby/2.2.0/gems/i18n-0.6.9/test/api/memoize_test.rb
logstash-filter-base64-1.0.4 vendor/bundle/jruby/2.2.0/gems/i18n-0.6.9/test/api/memoize_test.rb
logstash-filter-base64-1.0.3 vendor/bundle/jruby/2.2.0/gems/i18n-0.6.9/test/api/memoize_test.rb
logstash-filter-delta-1.0.0 vendor/bundle/jruby/2.2.0/gems/i18n-0.6.9/test/api/memoize_test.rb
logstash-filter-base64-1.0.2 vendor/bundle/jruby/2.3.0/gems/i18n-0.6.9/test/api/memoize_test.rb
logstash-filter-base64-1.0.1 vendor/bundle/jruby/2.3.0/gems/i18n-0.6.9/test/api/memoize_test.rb
logstash-filter-base64-1.0.0 vendor/bundle/jruby/2.3.0/gems/i18n-0.6.9/test/api/memoize_test.rb