aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/query/injections/ruby/test-ruby-debugger.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/query/injections/ruby/test-ruby-debugger.rb b/tests/query/injections/ruby/test-ruby-debugger.rb
new file mode 100644
index 000000000..1dd8632c3
--- /dev/null
+++ b/tests/query/injections/ruby/test-ruby-debugger.rb
@@ -0,0 +1,11 @@
+binding.b(do: "puts 'Hello, world!'")
+# ^ @ruby
+
+binding.b(pre: "pp [1, 2, 3]")
+# ^ @ruby
+
+binding.break(do: "puts 'Hello, world!'")
+# ^ @ruby
+
+binding.break(pre: "pp [1, 2, 3]")
+# ^ @ruby