lib/tapioca/helpers/test/isolation.rb in tapioca-0.9.4 vs lib/tapioca/helpers/test/isolation.rb in tapioca-0.10.0
- old
+ new
@@ -8,12 +8,16 @@
# constants from ActiveSupport without polluting the global namespace.
module Isolation
extend T::Sig
require "thread"
- sig { returns(T::Boolean) }
- def self.forking_env?
- !ENV["NO_FORK"] && Process.respond_to?(:fork)
+ class << self
+ extend T::Sig
+
+ sig { returns(T::Boolean) }
+ def forking_env?
+ !ENV["NO_FORK"] && Process.respond_to?(:fork)
+ end
end
def run
serialized = T.unsafe(self).run_in_isolation do
super