Sha256: e1402872c921af44a07feceed400a746ca8053ce6dd132a7b23923cd06fb1b22

Contents?: true

Size: 835 Bytes

Versions: 22

Compression:

Stored size: 835 Bytes

Contents

require_relative 'test_helper'

describe "Display Command" do
  include TestDsl
  temporary_change_method_value(Debugger, :printer, Printers::Xml.new)

  it "displays all expressions available" do
    enter 'break 3', 'cont', -> do
      Debugger.handler.display.concat([[true, "abc"], [true, "d"]]); 'display'
    end
    debug_file('display')
    check_output_includes '<displays><display key="abc" value=""/><display key="d" value="4"/></displays>'
  end

  describe "undisplay all" do
    it "must ask about confirmation" do
      enter 'break 3', 'cont', -> do
        Debugger.handler.display.concat([[true, "abc"], [true, "d"]])
        'undisplay'
      end, 'y', 'display'
      debug_file('display')
      check_output_includes "<confirmation>Clear all expressions?</confirmation>", interface.confirm_queue
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
debugger-xml-0.5.0.pre2 test/display_test.rb
debugger-xml-0.5.0.pre1 test/display_test.rb
debugger-xml-0.4.1 test/display_test.rb
debugger-xml-0.4.0 test/display_test.rb
debugger-xml-0.3.3 test/display_test.rb
debugger-xml-0.3.2 test/display_test.rb
debugger-xml-0.3.1 test/display_test.rb
debugger-xml-0.2.0 test/display_test.rb
debugger-xml-0.1.9 test/display_test.rb
debugger-xml-0.1.8 test/display_test.rb
debugger-xml-0.1.7 test/display_test.rb
debugger-xml-0.1.6 test/display_test.rb
debugger-xml-0.1.5 test/display_test.rb
debugger-xml-0.1.4 test/display_test.rb
debugger-xml-0.1.3 test/display_test.rb
debugger-xml-0.1.2 test/display_test.rb
debugger-xml-0.1.1 test/display_test.rb
debugger-xml-0.1.0 test/display_test.rb
debugger-xml-0.0.4 test/display_test.rb
debugger-xml-0.0.3 test/display_test.rb