Namespace
Methods
#
F
R
Class Public methods
forking_env?()
# File activesupport/lib/active_support/testing/isolation.rb, line 60
def self.forking_env?
  !ENV["NO_FORK"] && ((RbConfig::CONFIG['host_os'] !~ /mswin|mingw/) && (RUBY_PLATFORM !~ /java/))
end
Instance Public methods
_run_class_setup()
# File activesupport/lib/active_support/testing/isolation.rb, line 66
def _run_class_setup      # class setup method should only happen in parent
  @@class_setup_mutex.synchronize do
    unless defined?(@@ran_class_setup) || ENV['ISOLATION_TEST']
      self.class.setup if self.class.respond_to?(:setup)
      @@ran_class_setup = true
    end
  end
end
run(runner)
# File activesupport/lib/active_support/testing/isolation.rb, line 75
def run(runner)
  _run_class_setup

  serialized = run_in_isolation do |isolated_runner|
    super(isolated_runner)
  end

  retval, proxy = Marshal.load(serialized)
  proxy.__replay__(runner)
  retval
end