From 9587db3d077de1e118f40f8b880b36e594ba9ce6 Mon Sep 17 00:00:00 2001 From: "Eric Zheng (PiaoDan)" Date: Sat, 9 Jul 2022 16:58:25 +0800 Subject: fix: add more indentations for ruby (#3139) --- tests/indent/ruby_spec.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/indent/ruby_spec.lua (limited to 'tests/indent/ruby_spec.lua') diff --git a/tests/indent/ruby_spec.lua b/tests/indent/ruby_spec.lua new file mode 100644 index 000000000..4c533a39f --- /dev/null +++ b/tests/indent/ruby_spec.lua @@ -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) -- cgit v1.2.3-70-g09d2