Escape the newline in the inspect query

This commit is contained in:
Donal McBreen
2023-09-12 19:10:39 +01:00
parent a367819a1c
commit fb0aeec27e
4 changed files with 5 additions and 5 deletions

View File

@@ -332,7 +332,7 @@ class CommandsAppTest < ActiveSupport::TestCase
end
test "cord" do
assert_equal "docker inspect -f '{{ range .Mounts }}{{printf \"%s %s\n\" .Source .Destination}}{{ end }}' app-web-123 | awk '$2 == \"/tmp/kamal-cord\" {print $1}'", new_command.cord(version: 123).join(" ")
assert_equal "docker inspect -f '{{ range .Mounts }}{{printf \"%s %s\\n\" .Source .Destination}}{{ end }}' app-web-123 | awk '$2 == \"/tmp/kamal-cord\" {print $1}'", new_command.cord(version: 123).join(" ")
end
test "tie cord" do