Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit c18fc29

Browse files
committed
Merge pull request #2915 from neko314/example_procsy
Make inspection value for Example::Procsy be the same as class name of it
1 parent 90a15b2 commit c18fc29

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/rspec/core/example.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ def executed?
370370

371371
# @private
372372
def inspect
373-
@example.inspect.gsub('Example', 'ExampleProcsy')
373+
@example.inspect.gsub('Example', 'Example::Procsy')
374374
end
375375
end
376376

spec/rspec/core/hooks_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ def self.data_from(ex)
316316
end
317317

318318
group.run
319-
expect(inspect_value).to match(/ExampleProcsy/)
319+
expect(inspect_value).to match(/Example::Procsy/)
320320
end
321321
end
322322

0 commit comments

Comments
 (0)