aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/ruby_spec.lua
diff options
context:
space:
mode:
authorZheng Piaodan <zhengpiaodan@gmail.com>2022-08-13 16:56:02 +0800
committerStephan Seitz <stephan.seitz@fau.de>2022-08-13 03:40:17 -0700
commit48d88ddbff301d69703f0942c75603d545670782 (patch)
tree550b72db2adb26a2de65e8441d0c0303dbb1b905 /tests/indent/ruby_spec.lua
parentfix(ruby): indent parenthesized_statements (diff)
downloadnvim-treesitter-48d88ddbff301d69703f0942c75603d545670782.tar
nvim-treesitter-48d88ddbff301d69703f0942c75603d545670782.tar.gz
nvim-treesitter-48d88ddbff301d69703f0942c75603d545670782.tar.bz2
nvim-treesitter-48d88ddbff301d69703f0942c75603d545670782.tar.lz
nvim-treesitter-48d88ddbff301d69703f0942c75603d545670782.tar.xz
nvim-treesitter-48d88ddbff301d69703f0942c75603d545670782.tar.zst
nvim-treesitter-48d88ddbff301d69703f0942c75603d545670782.zip
fix(ruby): indent of brackets & parens
Diffstat (limited to 'tests/indent/ruby_spec.lua')
-rw-r--r--tests/indent/ruby_spec.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/indent/ruby_spec.lua b/tests/indent/ruby_spec.lua
index f182b45dd..1653aaa87 100644
--- a/tests/indent/ruby_spec.lua
+++ b/tests/indent/ruby_spec.lua
@@ -6,6 +6,12 @@ local run = Runner:new(it, "tests/indent/ruby", {
})
describe("indent Ruby:", function()
+ describe("whole file:", function()
+ run:whole_file(".", {
+ expected_failures = {},
+ })
+ end)
+
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 })