Fix accessory name check in with_accessory

This commit is contained in:
Evgeny Latyshev
2023-09-26 21:40:14 +07:00
parent 5f58575b62
commit 981d391d4d
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