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

Commit f20072a

Browse files
authored
Merge pull request #2915 from neko314/example_procsy
Make inspection value for Example::Procsy be the same as class name of it
2 parents 053fcfe + 85b7eb7 commit f20072a

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
@@ -377,7 +377,7 @@ def executed?
377377

378378
# @private
379379
def inspect
380-
@example.inspect.gsub('Example', 'ExampleProcsy')
380+
@example.inspect.gsub('Example', 'Example::Procsy')
381381
end
382382
end
383383

spec/rspec/core/hooks_spec.rb

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

327327
group.run
328-
expect(inspect_value).to match(/ExampleProcsy/)
328+
expect(inspect_value).to match(/Example::Procsy/)
329329
end
330330
end
331331

0 commit comments

Comments
 (0)