File: local_interface_test.rb

package info (click to toggle)
ruby-byebug 11.1.3-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,252 kB
  • sloc: ruby: 8,835; ansic: 1,662; sh: 6; makefile: 4
file content (19 lines) | stat: -rw-r--r-- 428 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

require "test_helper"
require "minitest/mock"

module Byebug
  #
  # Tests the local interface
  #
  class LocalInterfaceTest < TestCase
    def test_continues_by_control_d
      # `Readline.readline` returns nil for Control-D
      Readline.stub(:readline, nil) do
        interface = LocalInterface.new
        assert_equal "continue", interface.readline("(byebug)")
      end
    end
  end
end