An assertion such as this is probably a typo or a flawed test (since it can never fail): `expect(foo.bar).to eq(foo.bar)`