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.1.2 lib/active_model/test_case.rb
activemodel-3.0.11 lib/active_model/test_case.rb
activemodel-3.1.2.rc2 lib/active_model/test_case.rb
activemodel-3.1.2.rc1 lib/active_model/test_case.rb
dirty_history-0.3.0 dirty_history/ruby/1.9.1/gems/activemodel-3.1.1/lib/active_model/test_case.rb
activemodel-3.1.1 lib/active_model/test_case.rb
activemodel-3.1.1.rc3 lib/active_model/test_case.rb
activemodel-3.1.1.rc2 lib/active_model/test_case.rb
activemodel-3.1.1.rc1 lib/active_model/test_case.rb
activemodel-3.1.0 lib/active_model/test_case.rb
activemodel-3.1.0.rc8 lib/active_model/test_case.rb
activemodel-3.1.0.rc6 lib/active_model/test_case.rb
activemodel-3.0.10 lib/active_model/test_case.rb
activemodel-3.0.10.rc1 lib/active_model/test_case.rb
activemodel-3.1.0.rc5 lib/active_model/test_case.rb
activemodel-3.0.9 lib/active_model/test_case.rb
activemodel-3.0.9.rc5 lib/active_model/test_case.rb
activemodel-3.0.9.rc4 lib/active_model/test_case.rb
activemodel-3.1.0.rc4 lib/active_model/test_case.rb
activemodel-3.0.9.rc3 lib/active_model/test_case.rb