8000 Make `name` variable of `Behavior` open by VojtaStavik · Pull Request #906 · Quick/Quick · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Make name variable of Behavior open #906

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

Merged
merged 1 commit into from
Sep 7, 2019

Conversation

VojtaStavik
Copy link
Contributor
@VojtaStavik VojtaStavik commented Jul 22, 2019

The PR is a byproduct of my article about using Behavior in Quick.

I believe the name variable of Behavior should be open so it's possible to override it and provide custom name, if needed.

@QuickBot
Copy link
1 Warning
⚠️ Need to add an unit test if you’re modifying swift source

Generated by 🚫 Danger

Copy link
Member
@ikesyo ikesyo left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the PR 👍

/**
Override this variable if you want to provide custom name for this example group.
*/
open class var name: String { return String(describing: self) }
Copy link
91A1 Member

Choose a reason for hiding this comment

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

This is exactly what I thought before and is not a breaking change, so it's safe to merge.

#821 (comment)

@ikesyo ikesyo merged commit 6bcaa39 into Quick:master Sep 7, 2019
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.

3 participants
0