lib/spork/run_strategy/forking.rb in spork-0.9.0.rc3 vs lib/spork/run_strategy/forking.rb in spork-0.9.0.rc4
- old
+ new
@@ -27,6 +27,9 @@
def running?
@child && @child.running?
end
-end
\ No newline at end of file
+ def assert_ready!
+ raise RuntimeError, "This process hasn't loaded the environment yet by loading the prefork block" unless Spork.using_spork?
+ end
+end