Jon Leighton
|
f000d4e5fa
|
Quote these dates to prevent intermittent test failure. Suppose local time is 00:50 GMT+1. Without the quoting, the YAML parser would parse this as 00:50 UTC, into the local time of 01:50 GMT+1. Then, it would get written into the database in local time as 01:50. When it came back out the UTC date from the database and the UTC date of two weeks ago would be compared. The former would be 23:50, and the latter would be 00:50, so the two dates would differ, causing the assertion to fail. Quoting it prevents the YAML parser from getting involved.
|
2011-08-04 00:38:27 +01:00 |
|
Aaron Patterson
|
d8736b266b
|
Revert "this fixes a brittle test in fixtures_test.rb which fails when you are in a timezone which is ahead of UTC but UTC is in the previous day still."
This reverts commit f92cefa95f .
|
2011-07-20 15:37:52 -07:00 |
|
Josh Kalderimis
|
f92cefa95f
|
this fixes a brittle test in fixtures_test.rb which fails when you are in a timezone which is ahead of UTC but UTC is in the previous day still.
|
2011-07-20 01:00:35 +02:00 |
|
Jon Leighton
|
ac97e25235
|
Revert "Fix failure in test_preserves_existing_fixture_data from test/cases/fixtures_test.rb when UTC and local time occur on different dates." I am pretty sure this was an incorrect fix, and it still failed in certain circumstances anyway. I am now unable to reproduce the original failure I was experiencing so will leave it for now and see if this pops up again.
This reverts commit e4479b2f1b .
|
2011-07-17 19:55:05 +01:00 |
|
Jon Leighton
|
e4479b2f1b
|
Fix failure in test_preserves_existing_fixture_data from test/cases/fixtures_test.rb when UTC and local time occur on different dates.
|
2011-07-12 00:14:45 +01:00 |
|
Jeremy Kemper
|
49eafd8c36
|
Foxy fixtures. Adapter#disable_referential_integrity. Closes #9981.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8036 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-26 05:56:46 +00:00 |
|