File: untracevar_test.rb

package info (click to toggle)
ruby-byebug 13.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,288 kB
  • sloc: ruby: 9,013; ansic: 1,692; makefile: 4; sh: 4
file content (24 lines) | stat: -rw-r--r-- 508 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# frozen_string_literal: true

require "test_helper"

module Byebug
  #
  # Tests gloabal variable untracing functionality.
  #
  class UntracevarTest < TestCase
    def test_untracevar_help
      enter "help untracevar"
      debug_code(minimal_program)

      check_output_includes "Stops tracing a global variable."
    end

    def test_untracevar_not_global
      enter "untracevar $foo"
      debug_code(minimal_program)

      check_error_includes "'$foo' is not a global variable."
    end
  end
end