DEV: Add command to execute_command errors (#31490)

This commit is contained in:
Jarek Radosz
2025-02-25 00:49:11 +01:00
committed by GitHub
parent 3d2a6322d0
commit 51b0903f51
2 changed files with 8 additions and 7 deletions

View File

@ -550,6 +550,12 @@ RSpec.describe Discourse do
"a b c",
)
end
it "includes the command in the error message" do
expect do
Discourse::Utils.execute_command("false", failure_message: "oops")
end.to raise_error(RuntimeError, "false\noops")
end
end
describe ".clear_all_theme_cache!" do