Open JunichiIto opened 9 years ago
You wrote "RSpec requires eq or eql, not ==, to indicate an expectation of equality.". However, eq and eql are not interchangeable. This expression might lead misunderstanding. I think you don't have to mention eql here.
eq
eql
==
https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
it "is equal to a float of the same value" do expect(5).to eq(5.0) end it "is not equal to a float of the same value" do expect(5).not_to eql(5.0) end
You wrote "RSpec requires
eq
oreql
, not==
, to indicate an expectation of equality.". However,eq
andeql
are not interchangeable. This expression might lead misunderstanding. I think you don't have to mentioneql
here.https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers