25 lines
689 B
Ruby
25 lines
689 B
Ruby
|
require 'test_helper'
|
||
|
|
||
|
class I18nApiChainTest < I18n::TestCase
|
||
|
def setup
|
||
|
super
|
||
|
I18n.backend = I18n::Backend::Chain.new(I18n::Backend::Simple.new, I18n.backend)
|
||
|
end
|
||
|
|
||
|
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
|
||
|
|
||
|
test "make sure we use the Chain backend" do
|
||
|
assert_equal I18n::Backend::Chain, I18n.backend.class
|
||
|
end
|
||
|
end
|