Namespace
- MODULE ActiveSupport::Testing::Isolation::Forking
- MODULE ActiveSupport::Testing::Isolation::MiniTest
- MODULE ActiveSupport::Testing::Isolation::Subprocess
- MODULE ActiveSupport::Testing::Isolation::TestUnit
Methods
Class Public methods
Source: show
# File activesupport/lib/active_support/testing/isolation.rb, line 36 def self.forking_env? !ENV["NO_FORK"] && ((RbConfig::CONFIG['host_os'] !~ /mswin|mingw/) && (RUBY_PLATFORM !~ /java/)) end
Source: show
# File activesupport/lib/active_support/testing/isolation.rb, line 40 def self.included(base) if defined?(::MiniTest) && base < ::MiniTest::Unit::TestCase base.send :include, MiniTest elsif defined?(Test::Unit) base.send :include, TestUnit end end
Instance Public methods
Source: show
# File activesupport/lib/active_support/testing/isolation.rb, line 48 def _run_class_setup # class setup method should only happen in parent unless defined?(@@ran_class_setup) || ENV['ISOLATION_TEST'] self.class.setup if self.class.respond_to?(:setup) @@ran_class_setup = true end end