X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b954416a70fb167b9cae0a3937de16bd9a93d239..4cd2d22788cbc8acf411c9f9436eee85a4590c5f:/test/controllers/site_controller_test.rb diff --git a/test/controllers/site_controller_test.rb b/test/controllers/site_controller_test.rb index 608263643..681df7945 100644 --- a/test/controllers/site_controller_test.rb +++ b/test/controllers/site_controller_test.rb @@ -241,7 +241,7 @@ class SiteControllerTest < ActionController::TestCase # Test editing a specific node def test_edit_with_node user = create(:user) - node = current_nodes(:visible_node) + node = create(:node, :lat => 1.0, :lon => 1.0) get :edit, { :node => node.id }, { :user => user } assert_response :success @@ -254,7 +254,9 @@ class SiteControllerTest < ActionController::TestCase # Test editing a specific way def test_edit_with_way user = create(:user) - way = current_ways(:visible_way) + node = create(:node, :lat => 3, :lon => 3) + way = create(:way) + create(:way_node, :node => node, :way => way) get :edit, { :way => way.id }, { :user => user } assert_response :success