fix: add more indentations for ruby (#3139)

This commit is contained in:
Eric Zheng (PiaoDan) 2022-07-09 16:58:25 +08:00 committed by GitHub
parent ab3183107a
commit 9587db3d07
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 0 deletions

View file

@ -0,0 +1,2 @@
ret =
2

View file

@ -0,0 +1,2 @@
unless true
end

View file

@ -0,0 +1,13 @@
local Runner = require("tests.indent.common").Runner
local run = Runner:new(it, "tests/indent/ruby", {
shiftwidth = 2,
expandtab = true,
})
describe("indent Ruby:", function()
describe("new line:", function()
run:new_line("indent-unless.rb", { on_line = 1, text = "stmt", indent = 2 })
run:new_line("indent-assignment.rb", { on_line = 1, text = "1 +", indent = 2 })
end)
end)