Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It should be possible to compare an array with an ActiveRecord::Relation #12

Closed
mcmire opened this issue Jun 10, 2019 · 1 comment
Closed

Comments

@mcmire
Copy link
Owner

mcmire commented Jun 10, 2019

If a test like the following fails:

expect(person.shipping_addresses.order(:id)).to match([
  existing_shipping_address
])

then the diff should skip over the fact that person.shipping_addresses.order(:id) returns a relation object and not an array.

@mcmire
Copy link
Owner Author

mcmire commented Sep 11, 2019

Fixed by c67b963.

@mcmire mcmire closed this as completed Sep 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant