From 0099b368dd6a0f8ea9ff40ca895faedd84526d78 Mon Sep 17 00:00:00 2001 From: gazayas Date: Fri, 23 Jun 2023 15:25:50 +0900 Subject: [PATCH] Fix indentation when flushing assertions --- lib/magic_test/support.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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