File tree Expand file tree Collapse file tree 1 file changed +56
-2
lines changed
Expand file tree Collapse file tree 1 file changed +56
-2
lines changed Original file line number Diff line number Diff line change @@ -646,7 +646,9 @@ def test_catching_any_exception_works_correctly
646646 success : true ,
647647 message : "Success" ,
648648 body : {
649- stackFrames : [
649+ stackFrames :
650+ RUBY_VERSION < "4.0.0" ? [
651+ ##
650652 {
651653 name : "[C] Integer#/" ,
652654 line : 4 ,
@@ -690,6 +692,40 @@ def test_catching_any_exception_works_correctly
690692 sourceReference : 0
691693 } ,
692694 id : 5
695+ } ] : [
696+ ## RUBY_VERSION >= '4.0.0'
697+ {
698+ name : "Foo::Bar.a" ,
699+ line : 4 ,
700+ column : 1 ,
701+ source : {
702+ name : /#{ File . basename temp_file_path } / ,
703+ path : /#{ temp_file_path } / ,
704+ sourceReference : 0
705+ } ,
706+ id : 2
707+ } ,
708+ {
709+ name : "<module:Foo>" ,
710+ line : 7 ,
711+ column : 1 ,
712+ source : {
713+ name : /#{ File . basename temp_file_path } / ,
714+ path : /#{ temp_file_path } / ,
715+ sourceReference : 0
716+ } ,
717+ id : 3
718+ } ,
719+ {
720+ name : "<main>" ,
721+ line : 1 ,
722+ column : 1 ,
723+ source : {
724+ name : /#{ File . basename temp_file_path } / ,
725+ path : /#{ temp_file_path } / ,
726+ sourceReference : 0
727+ } ,
728+ id : 4
693729 }
694730 ]
695731 }
@@ -738,7 +774,7 @@ def test_catching_any_exception_works_correctly
738774 } ,
739775 type : "request"
740776 } ,
741- {
777+ RUBY_VERSION < "4.0.0" ? {
742778 seq : 19 ,
743779 type : "response" ,
744780 command : "variables" ,
@@ -765,6 +801,24 @@ def test_catching_any_exception_works_correctly
765801 }
766802 ]
767803 }
804+ } : # RUBY_VERSION >= "4.0.0"
805+ {
806+ "type" : "response" ,
807+ "command" : "variables" ,
808+ "request_seq" : 16 ,
809+ "success" : true ,
810+ "message" : "Success" ,
811+ "body" : {
812+ "variables" : [
813+ {
814+ "name" : "%self" ,
815+ "value" : "Foo::Bar" ,
816+ "type" : "Class" ,
817+ "variablesReference" : 5 ,
818+ "indexedVariables" : 0 ,
819+ "namedVariables" : 1
820+ } ]
821+ }
768822 } ,
769823 {
770824 seq : 17 ,
You can’t perform that action at this time.
0 commit comments