Skip to content

expect { ... }.to_not splits the infinitive #50

skizzybiz opened this Issue Dec 17, 2010 · 1 comment

2 participants


Sample code:
expect { ... }.to_not raise_error

This splits the infinitive, which depending on who you ask, could be poor grammar:

There should at least be a method alias for those who prefer to use not_to.

RSpec member

.not_to in addition to .to_not

@kchien kchien pushed a commit to kchien/rspec-expectations that referenced this issue Mar 7, 2014
@dchelimsky dchelimsky .not_to in addition to .to_not
- Closes #50.
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.