Skip to content

Commit ef1c1d0

Browse files
authored
tests: remove nil from hang-closing tests (#105)
There is not much value in running all tests with it to see that the default is used.
1 parent 7e2f5ac commit ef1c1d0

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

spec/indent/indent_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@
515515
end
516516

517517
SUITE_SHIFTWIDTHS = [4, 3]
518-
SUITE_HANG_CLOSINGS = [nil, false, true]
518+
SUITE_HANG_CLOSINGS = [false, true]
519519

520520
SUITE_SHIFTWIDTHS.each do |sw|
521521
describe "vim when using width of #{sw}" do

spec/spec_helper.rb

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,8 @@ def hang_closing
5252
return (i != 0)
5353
end
5454
def set_hang_closing(value)
55-
if value.nil?
56-
vim.command("unlet! g:python_pep8_indent_hang_closing")
57-
else
58-
i = value ? 1 : 0
59-
vim.command("let g:python_pep8_indent_hang_closing=#{i}")
60-
end
55+
i = value ? 1 : 0
56+
vim.command("let g:python_pep8_indent_hang_closing=#{i}")
6157
end
6258

6359
vim

0 commit comments

Comments
 (0)