Class Index [+]

Quicksearch

ActiveSupport::Testing::Isolation

Public Class Methods

forking_env?() click to toggle source
    # File lib/active_support/testing/isolation.rb, line 36
36:       def self.forking_env?
37:         !ENV["NO_FORK"] && ((RbConfig::CONFIG['host_os'] !~ /mswin|mingw/) && (RUBY_PLATFORM !~ /java/))
38:       end
included(base) click to toggle source
    # File lib/active_support/testing/isolation.rb, line 40
40:       def self.included(base)
41:         if defined?(::MiniTest) && base < ::MiniTest::Unit::TestCase
42:           base.send :include, MiniTest
43:         elsif defined?(Test::Unit)
44:           base.send :include, TestUnit
45:         end
46:       end

Public Instance Methods

_run_class_setup() click to toggle source
    # File lib/active_support/testing/isolation.rb, line 48
48:       def _run_class_setup      # class setup method should only happen in parent
49:         unless defined?(@@ran_class_setup) || ENV['ISOLATION_TEST']
50:           self.class.setup if self.class.respond_to?(:setup)
51:           @@ran_class_setup = true
52:         end
53:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.