X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5e407dfb34f47e6fbbbf3c11c1a8318256abb5cd..dd302f4f2c56d1e9f1a2e39a54670f6f5a9bbd34:/test/controllers/amf_controller_test.rb diff --git a/test/controllers/amf_controller_test.rb b/test/controllers/amf_controller_test.rb index 0bdd01bd2..650bf1f8e 100644 --- a/test/controllers/amf_controller_test.rb +++ b/test/controllers/amf_controller_test.rb @@ -360,11 +360,11 @@ class AmfControllerTest < ActionController::TestCase # into the method args. def test_getway_old_invalid way_id = create(:way, :with_history, :version => 2).id - { "foo" => "bar", + { "foo" => "bar", way_id => "not a date", way_id => "2009-03-25 00:00:00", # <- wrong format way_id => "0 Jan 2009 00:00:00", # <- invalid date - -1 => "1 Jan 2009 00:00:00" }.each do |id, t| # <- invalid + -1 => "1 Jan 2009 00:00:00" }.each do |id, t| # <- invalid amf_content "getway_old", "/1", [id, t] post :amf_read assert_response :success