From e007ad3a00b7efbf171825b325c2fa867c1870df Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 7 Dec 2010 21:53:50 +0000 Subject: [PATCH] Fix tests to copy with new style mail objects --- test/integration/user_creation_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.43.2