Skip to content

Commit 22bea23

Browse files
author
Dan Gorst
committed
Rolled back change to test
1 parent 73917db commit 22bea23

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/parser/options_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,8 @@ def remaining
292292
it "raises error when value isn't in enum" do
293293
enum = %w[apple banana]
294294
create :fruit => Thor::Option.new("fruit", :type => :string, :enum => enum)
295-
expect { parse("--fruit", "orange") }.to raise_error(Thor::MalformattedArgumentError)
295+
expect { parse("--fruit", "orange") }.to raise_error(Thor::MalformattedArgumentError,
296+
"Expected '--fruit' to be one of #{enum.join(', ')}; got orange")
296297
end
297298
end
298299

0 commit comments

Comments
 (0)