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 73917db commit 22bea23Copy full SHA for 22bea23
spec/parser/options_spec.rb
@@ -292,7 +292,8 @@ def remaining
292
it "raises error when value isn't in enum" do
293
enum = %w[apple banana]
294
create :fruit => Thor::Option.new("fruit", :type => :string, :enum => enum)
295
- expect { parse("--fruit", "orange") }.to raise_error(Thor::MalformattedArgumentError)
+ expect { parse("--fruit", "orange") }.to raise_error(Thor::MalformattedArgumentError,
296
+ "Expected '--fruit' to be one of #{enum.join(', ')}; got orange")
297
end
298
299
0 commit comments