Skip to content

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

Closed
skizzybiz opened this Issue Dec 17, 2010 · 1 comment

2 participants

@skizzybiz

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

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

http://en.wikipedia.org/wiki/Split_infinitive

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

@dchelimsky
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.
15573f9
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.