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
mdg-1.0.1 vendor/bundle/ruby/2.3.0/gems/activemodel-3.2.22.5/lib/active_model/test_case.rb
activemodel-3.2.22.5 lib/active_model/test_case.rb
activemodel-3.2.22.4 lib/active_model/test_case.rb
activemodel-3.2.22.3 lib/active_model/test_case.rb
activemodel-3.2.22.2 lib/active_model/test_case.rb
activemodel-3.2.22.1 lib/active_model/test_case.rb
classiccms-0.7.5 vendor/bundle/gems/activemodel-3.2.3/lib/active_model/test_case.rb
classiccms-0.7.4 vendor/bundle/gems/activemodel-3.2.3/lib/active_model/test_case.rb
classiccms-0.7.3 vendor/bundle/gems/activemodel-3.2.3/lib/active_model/test_case.rb
active_mailer-0.0.10 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/activemodel-3.2.12/lib/active_model/test_case.rb
activemodel-3.2.22 lib/active_model/test_case.rb
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/activemodel-3.2.12/lib/active_model/test_case.rb
activemodel-3.2.21 lib/active_model/test_case.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.8/gems/activemodel-3.2.18/lib/active_model/test_case.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.9.1/gems/activemodel-3.2.18/lib/active_model/test_case.rb
apl-library-0.0.90 vendor/bundle/ruby/1.9.1/gems/activemodel-3.2.18/lib/active_model/test_case.rb
apl-library-0.0.90 vendor/bundle/ruby/1.8/gems/activemodel-3.2.18/lib/active_model/test_case.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/activemodel-3.2.18/lib/active_model/test_case.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/2.1.0/gems/activemodel-3.2.18/lib/active_model/test_case.rb
activemodel-3.2.20 lib/active_model/test_case.rb