lib/tapioca/helpers/test/isolation.rb in tapioca-0.11.7 vs lib/tapioca/helpers/test/isolation.rb in tapioca-0.11.8
- old
+ new
@@ -27,12 +27,14 @@
Marshal.load(serialized)
end
module Forking
extend T::Sig
- include Kernel
+ extend T::Helpers
+ requires_ancestor { Kernel }
+
sig { params(_blk: T.untyped).returns(String) }
def run_in_isolation(&_blk)
read, write = IO.pipe
read.binmode
write.binmode
@@ -70,10 +72,13 @@
end
end
module Subprocess
extend T::Sig
- include Kernel
+ extend T::Helpers
+
+ requires_ancestor { Kernel }
+
ORIG_ARGV = T.let(ARGV.dup, T::Array[T.untyped]) unless defined?(ORIG_ARGV)
# Crazy H4X to get this working in windows / jruby with
# no forking.
sig { params(_blk: T.untyped).returns(String) }