Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add #status to Cucumber::Core::Test::Result classes #89

Merged

Conversation

pdswan
Copy link
Contributor

@pdswan pdswan commented May 1, 2015

Module.new do
define_method :status do
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe I'm being picky, but I'm inclined to call this :to_sym. It doesn't sound right to me for a result to have a status. Do you know what I mean?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not picky at all, the status is the result, it's reflected in the class name and the predicate methods so it makes more sense to expose it as a version of the result (i.e. it's symbol form) rather than a separate piece of data.

@pdswan pdswan force-pushed the regression/missing-scenario-status branch from e05e5f2 to fec6053 Compare May 1, 2015 23:22
@pdswan pdswan force-pushed the regression/missing-scenario-status branch from fec6053 to 820c973 Compare May 5, 2015 00:43
mattwynne added a commit that referenced this pull request May 6, 2015
Add #status to Cucumber::Core::Test::Result classes
@mattwynne mattwynne merged commit f87e6f3 into cucumber:master May 6, 2015
@mattwynne
Copy link
Member

Thanks @pdswan!

@lock
Copy link

lock bot commented Oct 24, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 24, 2018
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.

2 participants