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