From dc5af035937f4e48dc0d5a6c9bda01155f972e3f Mon Sep 17 00:00:00 2001 From: Donal McBreen Date: Wed, 6 Mar 2024 16:03:08 +0000 Subject: [PATCH] Update tests to match single quotes --- test/cli/build_test.rb | 2 +- test/commands/builder_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/cli/build_test.rb b/test/cli/build_test.rb index cd71e279..082881c5 100644 --- a/test/cli/build_test.rb +++ b/test/cli/build_test.rb @@ -57,7 +57,7 @@ class CliBuildTest < CliTestCase run_command("pull").tap do |output| assert_match /docker image rm --force dhh\/app:999/, output assert_match /docker pull dhh\/app:999/, output - assert_match "docker inspect -f '{{ .Config.Labels.service }}' dhh/app:999 | grep -x app || (echo \"Image dhh/app:999 is missing the `service` label\" && exit 1)", output + assert_match "docker inspect -f '{{ .Config.Labels.service }}' dhh/app:999 | grep -x app || (echo \"Image dhh/app:999 is missing the 'service' label\" && exit 1)", output end end diff --git a/test/commands/builder_test.rb b/test/commands/builder_test.rb index 51bb837c..fe1b879c 100644 --- a/test/commands/builder_test.rb +++ b/test/commands/builder_test.rb @@ -120,7 +120,7 @@ class CommandsBuilderTest < ActiveSupport::TestCase end test "validate image" do - assert_equal "docker inspect -f '{{ .Config.Labels.service }}' dhh/app:123 | grep -x app || (echo \"Image dhh/app:123 is missing the `service` label\" && exit 1)", new_builder_command.validate_image.join(" ") + assert_equal "docker inspect -f '{{ .Config.Labels.service }}' dhh/app:123 | grep -x app || (echo \"Image dhh/app:123 is missing the 'service' label\" && exit 1)", new_builder_command.validate_image.join(" ") end private