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

Make Expectation.expression public #300

Merged
merged 1 commit into from Jun 3, 2016
Merged

Make Expectation.expression public #300

merged 1 commit into from Jun 3, 2016

Conversation

akashivskyy
Copy link
Contributor

@akashivskyy akashivskyy commented Jun 2, 2016

I am working on a project where I use Quick and Nimble for behavioral DSL and SwiftCheck for property-based testing. This requires me to return test results, instead of asserting them straight in an assertion handler.

So I tried to overload Expectation.to(_:description:) and Expectation.toNot(_:description:) so that they return SwiftCheck.Testable and noticed that I cannot access expression property and therefore pass it to a matcher.

This pull request makes Expectation.expression public so that it is accessible outside the Nimble framework target.

@ashfurrow
Copy link
Member

Seems reasonable, I can't think of any adverse effects.

@ashfurrow ashfurrow merged commit d890063 into Quick:master Jun 3, 2016
@ashfurrow
Copy link
Member

Super, thanks @akashivskyy!

@akashivskyy
Copy link
Contributor Author

Been a pleasure to contribute even at such a small scale 😄

@ashfurrow
Copy link
Member

It all counts 😉

Megal pushed a commit to Megal/Nimble that referenced this pull request Jul 31, 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.

None yet

2 participants