-
Notifications
You must be signed in to change notification settings - Fork 681
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
Conversation
# 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 |
There was a problem hiding this comment.
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?
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 |
There was a problem hiding this comment.
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.
32145a9
to
f30778a
Compare
@ssd I refactored it in a slightly different way but I think I hit all the issues you pointed out. |
@ksubrama Nice refactor! |
Also fixes: #872 |
👍 from me |
Great work @ksubrama |
f30778a
to
e35dd33
Compare
e35dd33
to
0f572df
Compare
Fix #812
Fix #872