X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/df249508540acfeeaf2ee441f85489ed032d0d03..17ff182c964e87fc58a4efb9b2cd067b1822fa77:/test/controllers/amf_controller_test.rb?ds=sidebyside diff --git a/test/controllers/amf_controller_test.rb b/test/controllers/amf_controller_test.rb index 66965d8af..605be4c8d 100644 --- a/test/controllers/amf_controller_test.rb +++ b/test/controllers/amf_controller_test.rb @@ -19,8 +19,8 @@ class AmfControllerTest < ActionController::TestCase end def test_getpresets - user_en_de = create(:normal_user, :languages => %w(en de)) - user_de = create(:normal_user, :languages => %w(de)) + user_en_de = create(:user, :languages => %w(en de)) + user_de = create(:user, :languages => %w(de)) [user_en_de, user_de].each do |user| amf_content "getpresets", "/1", ["#{user.email}:test", ""] post :amf_read @@ -460,7 +460,7 @@ class AmfControllerTest < ActionController::TestCase assert_equal -1, result[0] assert_match /must be logged in/, result[1] - blocked_user = create(:normal_user) + blocked_user = create(:user) create(:user_block, :user => blocked_user) amf_content "findgpx", "/1", [1, "#{blocked_user.email}:test"] post :amf_read @@ -474,7 +474,7 @@ class AmfControllerTest < ActionController::TestCase end def test_findgpx_by_id - user = create(:normal_user) + user = create(:user) trace = create(:trace, :visibility => "private", :user => user) amf_content "findgpx", "/1", [trace.id, "#{user.email}:test"]