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
challah-0.3.3 vendor/bundle/gems/activemodel-3.2.1/lib/active_model/test_case.rb
challah-0.3.2 vendor/bundle/gems/activemodel-3.2.1/lib/active_model/test_case.rb
challah-0.3.1 vendor/bundle/gems/activemodel-3.2.1/lib/active_model/test_case.rb
challah-0.3.0 vendor/bundle/gems/activemodel-3.2.1/lib/active_model/test_case.rb
challah-0.2.1 vendor/bundle/gems/activemodel-3.2.1/lib/active_model/test_case.rb
challah-0.2.0 vendor/bundle/gems/activemodel-3.2.1/lib/active_model/test_case.rb
activemodel-3.2.1 lib/active_model/test_case.rb
activemodel-3.2.0 lib/active_model/test_case.rb
activemodel-3.2.0.rc2 lib/active_model/test_case.rb
dirty_history-0.4.10 dirty_history/ruby/1.9.1/gems/activemodel-3.1.1/lib/active_model/test_case.rb
dirty_history-0.4.9 dirty_history/ruby/1.9.1/gems/activemodel-3.1.1/lib/active_model/test_case.rb
activemodel-3.2.0.rc1 lib/active_model/test_case.rb
dirty_history-0.4.8 dirty_history/ruby/1.9.1/gems/activemodel-3.1.1/lib/active_model/test_case.rb
dirty_history-0.4.7 dirty_history/ruby/1.9.1/gems/activemodel-3.1.1/lib/active_model/test_case.rb
dirty_history-0.4.6 dirty_history/ruby/1.9.1/gems/activemodel-3.1.1/lib/active_model/test_case.rb
dirty_history-0.4.5 dirty_history/ruby/1.9.1/gems/activemodel-3.1.1/lib/active_model/test_case.rb
dirty_history-0.4.4 dirty_history/ruby/1.9.1/gems/activemodel-3.1.1/lib/active_model/test_case.rb
dirty_history-0.4.3 dirty_history/ruby/1.9.1/gems/activemodel-3.1.1/lib/active_model/test_case.rb
dirty_history-0.4.2 dirty_history/ruby/1.9.1/gems/activemodel-3.1.1/lib/active_model/test_case.rb
activemodel-3.1.3 lib/active_model/test_case.rb