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

Commit 3974015

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 6fc2b92 commit 3974015

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
@@ -375,7 +375,7 @@ def executed?
375375

376376
# @private
377377
def inspect
378-
@example.inspect.gsub('Example', 'ExampleProcsy')
378+
@example.inspect.gsub('Example', 'Example::Procsy')
379379
end
380380
end
381381

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)