mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 11:36:54 -04:00
14 lines
394 B
Lua
14 lines
394 B
Lua
|
|
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)
|