on-demand ->new to make run_if_script safer
[catagits/Web-Simple.git] / t / run_if_script.t
index 0839046..f0157a0 100644 (file)
@@ -49,8 +49,8 @@ is(
 );
 
 like(
-    exception { DieTest->_build_for_run_if_script },    #
-    qr/^Failed to create new 'DieTest' object during/,
+    exception { DieTest->run_if_script->() },    #
+    qr/^Failed to auto-create new DieTest object/,
     "object creation in run_if_script decorates failure with useful information"
 );