Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Failing test in ActiveRecord #1096

guilleiguaran opened this Issue · 5 comments

2 participants


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.


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


Closed in favour of #1494

@guilleiguaran guilleiguaran reopened this

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


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


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.