Module: ActiveSupport::Testing::Isolation
Relationships & Source Files | |
Namespace Children | |
Modules:
| |
Defined in: | activesupport/lib/active_support/testing/isolation.rb |
Class Attribute Summary
- .forking_env? ⇒ Boolean readonly
Class Method Summary
- .included(klass) Internal use only
Instance Method Summary
Class Attribute Details
.forking_env? ⇒ Boolean
(readonly)
[ GitHub ]
# File 'activesupport/lib/active_support/testing/isolation.rb', line 14
def self.forking_env? !ENV["NO_FORK"] && Process.respond_to?(:fork) end
Class Method Details
.included(klass)
This method is for internal use only.
[ GitHub ]
# File 'activesupport/lib/active_support/testing/isolation.rb', line 8
def self.included(klass) # :nodoc: klass.class_eval do parallelize_me! end end
Instance Method Details
#run
[ GitHub ]# File 'activesupport/lib/active_support/testing/isolation.rb', line 18
def run serialized = run_in_isolation do super end Marshal.load(serialized) end