]> git.openstreetmap.org Git - rails.git/blobdiff - test/functional/user_controller_test.rb
Fix test to make sure it picks up the right token
[rails.git] / test / functional / user_controller_test.rb
index fce4470e3f9ea0944e8b539059e6767d69cf13bb..6a64fd8d81e40a40785da76d19ad43a0e1498f6a 100644 (file)
@@ -315,7 +315,7 @@ class UserControllerTest < ActionController::TestCase
                      :referer => '/edit?editor=id#map=1/2/3'}
 
     assert_equal welcome_path(:editor => 'id', :zoom => 1, :lat => 2, :lon => 3),
-                 user.tokens.first.referer
+                 user.tokens.order("id DESC").first.referer
   end
 
   def test_user_confirm_expired_token