Sha256: 339bc1b35ad3e0bc41b0588f98040e72d774f2564f61e42447974ebb258e10b5

Contents?: true

Size: 1.14 KB

Versions: 22

Compression:

Stored size: 1.14 KB

Contents

require_relative 'test_helper'

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

  describe "show instance method of a class" do
    it "must show using full command name" do
      enter 'break 15', 'cont', 'm MethodEx'
      debug_file 'method'
      check_output_includes '<methods><method name="bla"/></methods>'
    end
  end

  describe "show methods of an object" do
    it "must show using full command name" do
      enter 'break 15', 'cont', 'method instance a'
      debug_file 'method'
      check_output_includes /<methods>.*<method name="bla"\/>.*<\/methods>/
    end
  end

  describe "show instance variables of an object" do
    it "must show using full name command" do
      enter 'break 15', 'cont', 'method iv a'
      debug_file 'method'
      check_output_includes(Regexp.new(
        %{<variables>} +
          %{<variable name="@a" kind="instance" value="b" type="String" hasChildren="false" objectId=".*?"/>} +
          %{<variable name="@c" kind="instance" value="d" type="String" hasChildren="false" objectId=".*?"/>} +
        %{</variables>}
      ))
    end
  end

end

Version data entries

22 entries across 22 versions & 1 rubygems

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