3 class UserNotifierTest < ActionMailer::TestCase
5 # Send the email, then test that it got queued
6 test "account is setup" do
8 email = UserNotifier.account_is_setup user
12 # Test the body of the sent email contains what we expect it to
13 assert_equal Rails.configuration.user_notifier_email_from, email.from.first
14 assert_equal user.email, email.to.first
15 assert_equal 'Welcome to Curoverse - shell account enabled', email.subject
16 assert (email.body.to_s.include? 'Your Arvados shell account has been set up'),
17 'Expected Your Arvados shell account has been set up in email body'
18 assert (email.body.to_s.include? Rails.configuration.workbench_address),
19 'Expected workbench url in email body'