Skip to content

Commit cd0d392

Browse files
committed
Merge pull request #344 from rthbound/patch-7
Assert #usage uses 0 padding when no aliases given
2 parents 9f8c890 + 67e2222 commit cd0d392

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/parser/option_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ def option(name, options={})
175175
expect(parse(:foo, :boolean).usage).to eq("[--foo]")
176176
end
177177

178-
it "uses padding when no aliases are given" do
179-
expect(parse(:foo, :boolean).usage).to eq(" [--foo]")
178+
it "does not use padding when no aliases are given" do
179+
expect(parse(:foo, :boolean).usage).to eq("[--foo]")
180180
end
181181

182182
it "uses banner when supplied" do

0 commit comments

Comments
 (0)