We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b833b59 commit 3cd8b0bCopy full SHA for 3cd8b0b
spec/command_spec.cr
@@ -135,11 +135,13 @@ describe Cling::Command do
135
end
136
137
it "fails on invalid options" do
138
- expect_raises Cling::CommandError do
+ expect_raises Cling::ExecutionError, "Error while executing command error handler:\n\
139
+ Option 'foo' takes no arguments" do
140
options_command.execute "--foo=true --double-foo"
141
142
143
144
+ Option 'double-foo' takes no arguments" do
145
options_command.execute "--double-foo=true --bar baz"
146
147
0 commit comments