File tree Expand file tree Collapse file tree
thread/backtrace/location Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ def return_block(&b)
3434 end
3535
3636 it "does not return implicit parameter nodes" do
37- suppress_warning do eval <<~RUBY # ruby_version_is ""..."3.4"
3837 # Interesting because the BlockNode and the ItParametersNode/NumberedParametersNode are fully overlapping
3938 node = -> { it } . syntax_tree
4039 node . start_line . should == __LINE__ - 1
@@ -51,8 +50,6 @@ def return_block(&b)
5150 node = proc { _1 } . syntax_tree
5251 node . start_line . should == __LINE__ - 1
5352 node . should . is_a? ( Prism ::CallNode )
54- RUBY
55- end
5653 end
5754
5855 it "returns a ForNode for a for-loop block" do
Original file line number Diff line number Diff line change @@ -301,13 +301,13 @@ def value.to_a = 1
301301 RUBY
302302
303303 "class with rescue" => [ <<-RUBY , :ClassNode ] ,
304- SourceRangeClass = 1
305- $class SourceRangeClass ; rescue; end$
304+ SourceRangeClassSpecs = 1
305+ $class SourceRangeClassSpecs ; rescue; end$
306306 RUBY
307307
308308 "module with rescue" => [ <<-RUBY , :ModuleNode ] ,
309- SourceRangeModule = 1
310- $module SourceRangeModule ; rescue; end$
309+ SourceRangeModuleSpecs = 1
310+ $module SourceRangeModuleSpecs ; rescue; end$
311311 RUBY
312312
313313 # These nodes can own real calls, so source-range lookup cannot always exclude their classes.
Original file line number Diff line number Diff line change @@ -50,5 +50,6 @@ class MSpecScript
5050 /\w Specs?$/ ,
5151 /^CS_CONST/ ,
5252 /^CSL_CONST/ ,
53+ /^Prism$/ ,
5354 ]
5455end
You can’t perform that action at this time.
0 commit comments