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

Product test may fail #83

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Product test may fail #83

wants to merge 1 commit into from

Conversation

PabloMD
Copy link

@PabloMD PabloMD commented Jul 31, 2021

Hi,

I've followed your tutorial and the Product test(should sort product by most recent) failed.
When I debugged it the Products in fixtures had all same updated_at timestamp, so the fixture is not determining the order in that case.

`Product.recent.map(&:created_at)

[Sat, 31 Jul 2021 11:06:19.189008000 UTC +00:00, Sat, 31 Jul 2021 11:06:19.189008000 UTC +00:00, Sat, 31 Jul 2021 11:06:19.189008000 UTC +00:00]`

So I believe that adding the updated_at to fixtures will be a good point :)

Hi, 

I've followed your tutorial and the Product test(should sort product by most recent) failed. 
When I debugged it the Products in fixtures had all same updated_at timestamp, so the fixture is not determining the order in that case.

`Product.recent.map(&:created_at)
[Sat, 31 Jul 2021 11:06:19.189008000 UTC +00:00, Sat, 31 Jul 2021 11:06:19.189008000 UTC +00:00, Sat, 31 Jul 2021 11:06:19.189008000 UTC +00:00]
`
So I believe that adding the updated_at to fixtures will be a good point :)
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

Successfully merging this pull request may close these issues.

None yet

1 participant