stderr_like { Spin->run; } qr/Loading Spinfile from module/i, 'loads module spinfile'; #### stdout_like { Spin->run; } qr/Loading Spinfile from module/i, 'loads module spinfile'; #### # Running my tests [INFO ] No Spinfile given in command, looking in current directory. Spin.Command: 26 [INFO ] No Spinfile found in the current directory, looking in module share directory. Spin.Command: 33 [INFO ] Loading Spinfile from module share directory Spin.Command: 36 not ok 1 - loads module spinfile # Failed test 'loads module spinfile' # at t/02-command.t line 31. # STDOUT: # # doesn't match: # (?^i:Loading Spinfile from module) # as expected