Sha256: f517fee550b2d4dbd4fba984768c7feb66dec015acd9fffcc1a457f26ee5dfec

Contents?: true

Size: 433 Bytes

Versions: 2

Compression:

Stored size: 433 Bytes

Contents

module Tests
  module Backend
    module Simple
      module Setup
        module Base
          def setup
            super
            I18n.backend = I18n::Backend::Simple.new
            backend_store_translations :en, :foo => {:bar => 'bar', :baz => 'baz'}
          end

          def teardown
            super
            I18n.load_path = []
            I18n.backend = nil
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
svenfuchs-i18n-0.2.0 test/backend/simple/setup/base.rb
i18n-0.2.1 test/backend/simple/setup/base.rb