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

Generate test labels for multi-test controls #879

Merged
merged 3 commits into from Aug 5, 2016
Merged

Conversation

ksubrama
Copy link

@ksubrama ksubrama commented Aug 5, 2016

Fix #812
Fix #872

@ksubrama
Copy link
Author

ksubrama commented Aug 5, 2016

# If it's an anonymous control, just go with the only description
# available for the underlying test.
summary = c[:code_desc].to_s unless summary
summary + c[:message].to_s
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we add a space in front of the message here?

@chris-rock chris-rock changed the title Generate test labels for multi-test controls: Fix #812 WIP: Generate test labels for multi-test controls: Fix #812 Aug 5, 2016
elsif res.length == 0
# Empty control block - if it's anonymous, there's nothing we can do.
# Is this case even possible?
summary = "Empty anonymous control" unless summary
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you want something like: summary || "Empty anonymous control" otherwise this will return nil in the case that summary is already defined.

@ksubrama
Copy link
Author

ksubrama commented Aug 5, 2016

@ssd I refactored it in a slightly different way but I think I hit all the issues you pointed out.

@stevendanna
Copy link
Contributor

@ksubrama Nice refactor!

@ksubrama ksubrama changed the title WIP: Generate test labels for multi-test controls: Fix #812 Generate test labels for multi-test controls Aug 5, 2016
@stevendanna
Copy link
Contributor

Also fixes: #872

@stevendanna
Copy link
Contributor

👍 from me

@chris-rock
Copy link
Contributor

Great work @ksubrama

@chris-rock
Copy link
Contributor

screen shot 2016-08-05 at 1 52 33 pm

@ksubrama ksubrama merged commit 31a7d58 into master Aug 5, 2016
@chris-rock chris-rock added this to the 0.29.0 milestone Aug 5, 2016
@ksubrama ksubrama deleted the ksubrama/json_fix branch August 5, 2016 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants