From: Tom Hughes Date: Tue, 7 Dec 2010 21:53:50 +0000 (+0000) Subject: Fix tests to copy with new style mail objects X-Git-Tag: live~6208 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/e007ad3a00b7efbf171825b325c2fa867c1870df?hp=99a4ddd1dac5e7484978649f787d449fa3d4f8d7 Fix tests to copy with new style mail objects --- diff --git a/test/integration/user_creation_test.rb b/test/integration/user_creation_test.rb index 79772d444..fd00f4d71 100644 --- a/test/integration/user_creation_test.rb +++ b/test/integration/user_creation_test.rb @@ -114,7 +114,7 @@ class UserCreationTest < ActionController::IntegrationTest # Check that the confirm account url is correct confirm_regex = Regexp.new("/user/redirect_tester/confirm\\?confirm_string=([a-zA-Z0-9]*)") assert_match(confirm_regex, register_email.body) - confirm_string = confirm_regex.match(register_email.body)[1] + confirm_string = register_email.body.match(confirm_regex)[1] # Check the page assert_response :success