Skip to content

Commit 889d5b6

Browse files
committed
Add spec for custom indentation count
1 parent 6380c8f commit 889d5b6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

spec/shell/basic_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ def shell
2727
shell.indent { expect(shell.padding).to eq(7) }
2828
end
2929

30+
it "accepts custom indentation amounts" do
31+
shell.indent(6) {
32+
expect(shell.padding).to eq(6)
33+
}
34+
end
35+
3036
it "increases the padding when nested" do
3137
shell.indent {
3238
expect(shell.padding).to eq(1)

0 commit comments

Comments
 (0)