From 31c33f462d92aead29b8feb6445d8fe5626c4963 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Mon, 3 Dec 2012 18:21:32 +0000 Subject: Replaces find(:first) calls. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10928 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/integration/account_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/integration') diff --git a/test/integration/account_test.rb b/test/integration/account_test.rb index e16cda96b..36349cf7d 100644 --- a/test/integration/account_test.rb +++ b/test/integration/account_test.rb @@ -79,7 +79,7 @@ class AccountTest < ActionController::IntegrationTest post "account/lost_password", :mail => 'jSmith@somenet.foo' assert_redirected_to "/login" - token = Token.find(:first) + token = Token.first assert_equal 'recovery', token.action assert_equal 'jsmith@somenet.foo', token.user.mail assert !token.expired? @@ -137,7 +137,7 @@ class AccountTest < ActionController::IntegrationTest assert_redirected_to '/login' assert !User.find_by_login('newuser').active? - token = Token.find(:first) + token = Token.first assert_equal 'register', token.action assert_equal 'newuser@foo.bar', token.user.mail assert !token.expired? -- cgit v1.2.3