From: Tom Hughes Date: Tue, 20 Aug 2013 21:46:53 +0000 (+0100) Subject: Fix test to make sure it picks up the right token X-Git-Tag: live~4768 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/9701c6210c32335ce3baf964b7e564a4da48d7b8?ds=sidebyside Fix test to make sure it picks up the right token --- diff --git a/test/functional/user_controller_test.rb b/test/functional/user_controller_test.rb index fce4470e3..6a64fd8d8 100644 --- a/test/functional/user_controller_test.rb +++ b/test/functional/user_controller_test.rb @@ -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