Change broadcast cmd to just take an argument instead of STDIN

Simpler
This commit is contained in:
David Heinemeier Hansson
2023-02-18 18:22:46 +01:00
parent 0c03216fdf
commit 7f1191bf59
3 changed files with 5 additions and 8 deletions

View File

@@ -16,7 +16,7 @@ class CommandsAuditorTest < ActiveSupport::TestCase
test "broadcast" do
assert_match \
/echo '.* app removed container' \| bin\/audit_broadcast/,
/bin\/audit_broadcast '\[.*\] app removed container'/,
new_command.broadcast("app removed container").join(" ")
end