Methods
Classes and Modules
- MODULE ActiveSupport::Testing::Isolation::Forking
- MODULE ActiveSupport::Testing::Isolation::MiniTest
- MODULE ActiveSupport::Testing::Isolation::Subprocess
- MODULE ActiveSupport::Testing::Isolation::TestUnit
Class Public methods
# File activesupport/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
Instance Public methods
# File activesupport/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