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

Clarify one-liner syntax cannot be used with block matchers #2158

Merged
merged 1 commit into from
Jan 18, 2016
Merged

Clarify one-liner syntax cannot be used with block matchers #2158

merged 1 commit into from
Jan 18, 2016

Conversation

mrageh
Copy link
Contributor

@mrageh mrageh commented Jan 18, 2016

Users sometimes try to use the one-liner syntax with block matchers,
which can cause RSpec to behave in strange ways. This behaviour is not
supported in RSpec because the complexity of implementing it would
greatly outweigh the benefits.

This commit just clarifies in the documentation that the one-liner
syntax does not support block matchers.

Possible fix for rspec/rspec-expectations#805

Users sometimes try to use the one-liner syntax with block matchers,
which can cause RSpec to behave in strange ways. This behaviour is not
supported in RSpec because the complexity of implementing it would
greatly outweigh the benefits.

This commit just clarifies in the documentation that the one-liner
syntax does not support block matchers.

Possible fix for rspec/rspec-expectations#805
JonRowe added a commit that referenced this pull request Jan 18, 2016
Clarify one-liner syntax cannot be used with block matchers
@JonRowe JonRowe merged commit d2ab059 into rspec:master Jan 18, 2016
@JonRowe
Copy link
Member

JonRowe commented Jan 18, 2016

Thanks :)

@mrageh
Copy link
Contributor Author

mrageh commented Jan 19, 2016

👍 @JonRowe

MatheusRich pushed a commit to MatheusRich/rspec-core that referenced this pull request Oct 30, 2020
…tation

Clarify one-liner syntax cannot be used with block matchers
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.

2 participants