Merge pull request #502 from latyshev/main

Fix accessory name checking that is passing to command `kamal accessory`
This commit is contained in:
Donal McBreen
2024-03-26 13:58:26 +00:00
committed by GitHub
2 changed files with 6 additions and 1 deletions

View File

@@ -79,6 +79,10 @@ class CliAccessoryTest < CliTestCase
assert_match "docker ps --filter label=service=app-mysql", run_command("details", "mysql")
end
test "details with non-existent accessory" do
assert_equal "No accessory by the name of 'hello' (options: mysql and redis)", stderred { run_command("details", "hello") }
end
test "details with all" do
run_command("details", "all").tap do |output|
assert_match "docker ps --filter label=service=app-mysql", output