diff --git a/lib/magic_test/support.rb b/lib/magic_test/support.rb index 9b1e3eb..28aa059 100644 --- a/lib/magic_test/support.rb +++ b/lib/magic_test/support.rb @@ -35,7 +35,7 @@ def flush puts "(writing that to `#{filepath}`.)" if output output.each do |last| - chunks.first << indentation + "#{last["action"]} #{last["target"]}#{last["options"]}" + "\n" + chunks.first << indentation + "#{last["action"]} #{last["target"]}#{last["options"]}".strip + "\n" @test_lines_written += 1 end contents = chunks.flatten.join