From 3a1674665045b57fc01b87fcc506f728d2b9feb0 Mon Sep 17 00:00:00 2001 From: Shaun McDonald Date: Mon, 18 Jan 2010 01:07:52 +0000 Subject: [PATCH] Fix changeset fixtures as noted on the dev mailing list. http://lists.openstreetmap.org/pipermail/dev/2010-January/018283.html --- test/fixtures/changesets.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test/fixtures/changesets.yml b/test/fixtures/changesets.yml index f7d898210..d80b517fe 100644 --- a/test/fixtures/changesets.yml +++ b/test/fixtures/changesets.yml @@ -1,5 +1,5 @@ # FIXME! all of these changesets need their bounding boxes set correctly! -# +# <% SCALE = 10000000 unless defined?(SCALE) %> # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html @@ -7,18 +7,18 @@ normal_user_first_change: id: 1 user_id: 1 created_at: "2007-01-01 00:00:00" - closed_at: <%= DateTime.now + Rational(1,24) %> + closed_at: <%= Time.now.utc + 86400 %> min_lon: <%= 1 * SCALE %> min_lat: <%= 1 * SCALE %> max_lon: <%= 5 * SCALE %> max_lat: <%= 5 * SCALE %> num_changes: 11 - + public_user_first_change: id: 2 user_id: 2 - created_at: <%= DateTime.now.utc %> - closed_at: <%= DateTime.now + Rational(1,24) %> + created_at: <%= Time.now.utc %> + closed_at: <%= Time.now.utc + 86400 %> num_changes: 0 normal_user_closed_change: @@ -38,8 +38,8 @@ public_user_closed_change: public_user_version_change: id: 4 user_id: 2 - created_at: <%= DateTime.now.utc %> - closed_at: <%= DateTime.now + Rational(1,24) %> + created_at: <%= Time.now.utc %> + closed_at: <%= Time.now.utc + 86400 %> min_lon: <%= 1 * SCALE %> min_lat: <%= 1 * SCALE %> max_lon: <%= 4 * SCALE %> @@ -62,7 +62,7 @@ too_many_elements_changeset: id: 6 user_id: 1 created_at: "2008-01-01 00:00:00" - closed_at: <%= DateTime.now + Rational(1,24) %> + closed_at: <%= Time.now.utc + 86400 %> min_lon: <%= 1 * SCALE %> min_lat: <%= 1 * SCALE %> max_lon: <%= 4 * SCALE %> -- 2.43.2