Skip to content

Commit 06d0a80

Browse files
committed
Fix new specs on CRuby CI
1 parent 586d7a9 commit 06d0a80

3 files changed

Lines changed: 5 additions & 7 deletions

File tree

‎core/proc/syntax_tree_spec.rb‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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

‎core/thread/backtrace/location/source_range_spec.rb‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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.

‎default.mspec‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,6 @@ class MSpecScript
5050
/\wSpecs?$/,
5151
/^CS_CONST/,
5252
/^CSL_CONST/,
53+
/^Prism$/,
5354
]
5455
end

0 commit comments

Comments
 (0)