Files
kamal/test/cli/lock_test.rb
David Heinemeier Hansson c4a203e648 Rename to Kamal
2023-08-22 08:24:31 -07:00

21 lines
449 B
Ruby

require_relative "cli_test_case"
class CliLockTest < CliTestCase
test "status" do
run_command("status") do |output|
assert_match "stat lock", output
end
end
test "release" do
run_command("release") do |output|
assert_match "rm -rf lock", output
end
end
private
def run_command(*command)
stdouted { Kamal::Cli::Lock.start([*command, "-c", "test/fixtures/deploy_with_accessories.yml"]) }
end
end