From 23253283dc590db7c425b4810b5e7b95ce16b4aa Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Mon, 2 Jul 2018 09:58:11 +0200 Subject: [PATCH] Fixed system test with confirmation email --- test/system/users_test.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/system/users_test.rb b/test/system/users_test.rb index 3191255..2972989 100644 --- a/test/system/users_test.rb +++ b/test/system/users_test.rb @@ -31,7 +31,8 @@ class UsersTest < ApplicationSystemTestCase confirmation_email = ActionMailer::Base.deliveries.last - assert confirmation_email.body.include?(confirmation_path) + assert confirmation_email.text_part.body.include?(confirmation_path) + assert confirmation_email.html_part.body.include?(confirmation_path) visit confirmation_path assert_equal new_user_session_path, page.current_path