everydayrails / rails-4-1-rspec-3-0

Code samples for Everyday Rails Testing with RSpec, Rails 4.1/RSpec 3.0 edition
272 stars 229 forks source link

Ch 3, worth mentioning about 'not_to' and 'to_not' #3

Closed JunichiIto closed 9 years ago

JunichiIto commented 10 years ago

I found you use not_to instead of to_not from RSpec 3 edition and I am wondering why.

But anyway I think it is worth mentioning about not_to and to_not. Readers should know they can use both. If there is any rule to determine which to use, I would like to know it.

JunichiIto commented 10 years ago

In chapter 5 and chapter 11, to_not still exists. Please grep and fix them for consistency.

ruralocity commented 10 years ago

I changed them to match RSpec's documentation more closely. I've updated the book for consistency and will update the example repo before releasing an update.