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: "RSpec prefers `eq` over `==`" is amiguous #16

Closed JunichiIto closed 10 years ago

JunichiIto commented 10 years ago

You wrote "RSpec prefers eq over == to indicate an expectation of equality". I feel it is allowed to write as expect(x).to == y, but it isn't. I think you should explicitly explain "==" is not allowed.

ruralocity commented 10 years ago

I've fixed this for the next release.