blob: 4c533a39f9c5a90d35308b39aeb840bfde2b1da1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
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)
|