mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
DEV: Add command to execute_command
errors (#31490)
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user