Skip to content

Commit eea0955

Browse files
committed
fix options spec.
1 parent ab3b5be commit eea0955

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spec/parser/options_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,9 @@ def remaining
116116
expected = "Unknown switches \"--baz\""
117117
expected << "\nDid you mean? \"--bar\"" if Thor::Correctable
118118

119-
expect { check_unknown! }.to raise_error(Thor::UnknownArgumentError, expected)
119+
expect { check_unknown! }.to raise_error(Thor::UnknownArgumentError) do |error|
120+
expect(error.to_s).to eq(expected)
121+
end
120122
end
121123

122124
it "skips leading non-switches" do

0 commit comments

Comments
 (0)