Sha256: d2e98133729699cd2e76b914bd9cce0a8fba7f773c6391f1f8e79211ecc2b70c

Contents?: true

Size: 319 Bytes

Versions: 309

Compression:

Stored size: 319 Bytes

Contents

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

309 entries across 265 versions & 23 rubygems

Version Path
activemodel-3.0.2 lib/active_model/test_case.rb
activemodel-3.0.1 lib/active_model/test_case.rb
activemodel-3.0.0 lib/active_model/test_case.rb
activemodel-3.0.0.rc2 lib/active_model/test_case.rb
activemodel-3.0.0.rc lib/active_model/test_case.rb
activemodel-3.0.0.beta4 lib/active_model/test_case.rb
activemodel-3.0.0.beta3 lib/active_model/test_case.rb
activemodel-3.0.0.beta2 lib/active_model/test_case.rb
activemodel-3.0.0.beta lib/active_model/test_case.rb