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
font-awesome-rails-3.1.1.2 vendor/ruby/2.0.0/gems/activemodel-3.2.12/lib/active_model/test_case.rb
font-awesome-rails-3.1.1.2 vendor/ruby/1.9.1/gems/activemodel-3.2.13/lib/active_model/test_case.rb
font-awesome-rails-3.1.1.1 vendor/ruby/1.9.1/gems/activemodel-3.2.13/lib/active_model/test_case.rb
font-awesome-rails-3.1.1.1 vendor/ruby/2.0.0/gems/activemodel-3.2.12/lib/active_model/test_case.rb
font-awesome-rails-3.1.1.1 vendor/ruby/1.9.1/gems/activemodel-3.2.12/lib/active_model/test_case.rb
challah-1.0.0.beta3 vendor/bundle/gems/activemodel-3.2.13/lib/active_model/test_case.rb
fc-webicons-0.0.4 vendor/bundle/ruby/1.9.1/gems/activemodel-3.2.13/lib/active_model/test_case.rb
challah-1.0.0.beta2 vendor/bundle/gems/activemodel-3.2.13/lib/active_model/test_case.rb
challah-1.0.0.beta vendor/bundle/gems/activemodel-3.2.13/lib/active_model/test_case.rb
challah-1.0.0.beta vendor/bundle/gems/activemodel-3.2.11/lib/active_model/test_case.rb
fc-webicons-0.0.3 vendor/bundle/ruby/1.9.1/gems/activemodel-3.2.13/lib/active_model/test_case.rb
fc-webicons-0.0.2 vendor/bundle/ruby/1.9.1/gems/activemodel-3.2.13/lib/active_model/test_case.rb
fc-webicons-0.0.1 vendor/bundle/ruby/1.9.1/gems/activemodel-3.2.13/lib/active_model/test_case.rb
activemodel-3.2.13 lib/active_model/test_case.rb
activemodel-3.1.12 lib/active_model/test_case.rb
activemodel-3.2.13.rc2 lib/active_model/test_case.rb
activemodel-3.2.13.rc1 lib/active_model/test_case.rb
active_mailer-0.0.5 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/activemodel-3.2.12/lib/active_model/test_case.rb
active_mailer-0.0.4 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/activemodel-3.2.12/lib/active_model/test_case.rb
active_mailer-0.0.3 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/activemodel-3.2.12/lib/active_model/test_case.rb