diff --git a/Formula/randomize-lines.rb b/Formula/randomize-lines.rb index 6fe2bd893d950..59480661bcbe7 100644 --- a/Formula/randomize-lines.rb +++ b/Formula/randomize-lines.rb @@ -28,6 +28,11 @@ def install end test do - system "echo", "-e", "\" ""1\n2\n4\" | \"#{bin}/rl\" -c 1" + (testpath/"test.txt").write <<~EOS + 1 + 2 + 4 + EOS + system "#{bin}/rl", "-c", "1", testpath/"test.txt" end end