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

Conversation

@JonRowe
Copy link
Member

@JonRowe JonRowe commented Jun 26, 2014

Follow up to #1619 it occurs to me that we shouldn't tell people that the procsy object is a proc (currently inspect exposes the proc's inspect string), so I propose we either use just the example string or as I've done a modified example string to make it clear it's a proxy object to the example.

@myronmarston
Copy link
Member

Can you paste before/after examples for what the inspect output was like?

@JonRowe
Copy link
Member Author

JonRowe commented Jun 27, 2014

Before:

#<Proc:0x007f93fc65b458@/path/to/rspec-core-3.0.2/lib/rspec/core/example.rb:145>

After:

#<RSpec::Core::ExampleProcsy:0x000001033240e8 (example vars ...)>

@cupakromer
Copy link
Member

I like the "After" version. 👍

@myronmarston
Copy link
Member

LGTM

JonRowe added a commit that referenced this pull request Jun 28, 2014
Expose a better inspect value for Example::Procsy
@JonRowe JonRowe merged commit 3d76fd1 into master Jun 28, 2014
@JonRowe JonRowe deleted the expose_sensible_procsy_inspect branch June 28, 2014 05:12
@JonRowe
Copy link
Member Author

JonRowe commented Jun 28, 2014

So I umed and ahed and decided I deem this an enhancement and therefore haven't back ported it to 3-0-maintenance, willing to do so if others think it's worthwhile.

@cupakromer
Copy link
Member

Sounds like an ER to me.

@JonRowe
Copy link
Member Author

JonRowe commented Jun 28, 2014

ER?

@cupakromer
Copy link
Member

Enhancement Request

MatheusRich pushed a commit to MatheusRich/rspec-core that referenced this pull request Oct 30, 2020
MatheusRich pushed a commit to MatheusRich/rspec-core that referenced this pull request Oct 30, 2020
Expose a better inspect value for Example::Procsy
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants