]> git.openstreetmap.org Git - rails.git/blobdiff - test/controllers/amf_controller_test.rb
Get tests passing. Use factories instead of fixtures.
[rails.git] / test / controllers / amf_controller_test.rb
index 5fee80d9fff5f56b3fdd4b13259370b757425aab..83ef03bbf95cc4fb1d31dc1d2169eb5c6153d1d7 100644 (file)
@@ -17,8 +17,8 @@ class AmfControllerTest < ActionController::TestCase
   end
 
   def test_getpresets
-    user_en_de = create(:user, :languages => %w(en de))
-    user_de = create(: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