diff --git a/spec/lrama/integration_spec.rb b/spec/lrama/integration_spec.rb index b0853fec..4d11b3ff 100644 --- a/spec/lrama/integration_spec.rb +++ b/spec/lrama/integration_spec.rb @@ -33,7 +33,10 @@ def test_parser(parser_name, input, expected, lrama_command_args: [], debug: fal status = wait_thr.value end - STDERR.puts err if debug && !err.empty? + if debug + STDERR.puts out + STDERR.puts err + end expect(status.success?).to be(true), status.to_s expect(out).to eq(expected) end