ruby_testing icon indicating copy to clipboard operation
ruby_testing copied to clipboard

.not_to/.to_not inconsistency

Open RobbieS-coder opened this issue 1 year ago • 2 comments

Throughout all of the lessons I have done so far, .not_to has always been used (as far as I have noticed) but in 10_drink_answer.rb on the 'is not full' test, .to_not is used.

On the Introduction to RSpec lesson at the end of the Basic syntax subsection, this is even said: "The expect method is also chained with .to for positive expectations, or .to_not/.not_to for negative expectations. We prefer .not_to."

RobbieS-coder avatar Mar 03 '24 17:03 RobbieS-coder

Thank you for making this issue. Yes, this is a change that we should make. Thanks for bringing it to our attention.

rlmoser99 avatar Aug 03 '24 15:08 rlmoser99

I can help to fix this

Bidrift avatar Aug 24 '24 14:08 Bidrift