Skip to content

Commit 67e2222

Browse files
committed
Assert #usage uses 0 padding when no aliases given
- The code reads as if no aliases => no padding - https://github.com/erikhuda/thor/blob/master/lib/thor/base.rb#L511-L518
1 parent 9f8c890 commit 67e2222

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)