Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Failing test in ActiveRecord #1096

Closed
guilleiguaran opened this Issue · 5 comments

2 participants

Guillermo Iguaran Damien Mathieu
Guillermo Iguaran

I'm getting a failure when run AR tests:

1) Failure:
test_preserves_existing_fixture_data(FoxyFixturesTest) [test/cases/fixtures_test.rb:598]:
<Tue, 03 May 2011> expected but was
<Mon, 02 May 2011>.

The strange thing is that this test only fails a little after midnight (I reproduced it today at 1am and last weekend at 2am) and works ok all the rest of the day, it must be related to timezone.

I will try to research and post more details here.

Damien Mathieu
Collaborator

Yes, that's because of time zones. I think if both times were using #utc, it'd fix the problem.

Guillermo Iguaran

Closed in favour of #1494

Guillermo Iguaran guilleiguaran reopened this
Guillermo Iguaran

Still happening, looks like the commit referenced in #1494 was reverted

Damien Mathieu
Collaborator

This commit is not the appropriate solution. That's why it was reverted.
I know @joshk has something drafted.

Guillermo Iguaran

Closing in favour of #2427

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.