summaryrefslogtreecommitdiffstats
path: root/test/integration
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration')
-rw-r--r--test/integration/account_test.rb4
1 files changed, 2 insertions, 2 deletions
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?