Sha256: 5c8126d636965031f413ec27f5df9a0a4da05c8a7023f4f4e15b872d65dd9cc4

Contents?: true

Size: 355 Bytes

Versions: 3

Compression:

Stored size: 355 Bytes

Contents

require "active_support/test_case"

module ActiveModel #:nodoc:
  class TestCase < ActiveSupport::TestCase #:nodoc:
    def with_kcode(kcode)
      if RUBY_VERSION < '1.9'
        orig_kcode, $KCODE = $KCODE, kcode
        begin
          yield
        ensure
          $KCODE = orig_kcode
        end
      else
        yield
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 3 rubygems

Version Path
cassandra_object-0.6.0.pre vendor/activemodel/lib/active_model/test_case.rb
activemodel-3.0.pre lib/active_model/test_case.rb
recliner-0.0.1 vendor/activemodel/lib/active_model/test_case.rb