Sha256: 81783bf3037a237de32847002f4fd9c1ac7220a8b9bcc152e24560c22799cef3
Contents?: true
Size: 556 Bytes
Versions: 4
Compression:
Stored size: 556 Bytes
Contents
class UserMailerTest < ActionMailer::TestCase setup do @user = guts_users :admin_user end test "should send reset" do email = Guts::UserMailer.password_reset(@user).deliver_now assert_not ActionMailer::Base.deliveries.empty? assert_equal ["from@example.com"], email.from assert_equal [@user.email], email.to assert_equal "Reset Password", email.subject assert_match /\/reset_password\/[0-9a-zA-Z]+/i, email.text_part.body.to_s assert_match /\/reset_password\/[0-9a-zA-Z]+/i, email.html_part.body.to_s end end
Version data entries
4 entries across 4 versions & 1 rubygems