X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/bcb16d1825fd2e3105a51a2a2f9a119d71f33c8d..69c08bb019277b158fc2f568b7de7483caa2875d:/services/api/test/unit/user_notifier_test.rb diff --git a/services/api/test/unit/user_notifier_test.rb b/services/api/test/unit/user_notifier_test.rb index c288786c13..e58c273a6d 100644 --- a/services/api/test/unit/user_notifier_test.rb +++ b/services/api/test/unit/user_notifier_test.rb @@ -10,6 +10,7 @@ class UserNotifierTest < ActionMailer::TestCase test "account is setup" do user = users :active + Rails.configuration.Users.UserNotifierEmailBcc = ConfigLoader.to_OrderedOptions({"bcc-notify@example.com"=>{},"bcc-notify2@example.com"=>{}}) Rails.configuration.Users.UserSetupMailText = %{ <% if not @user.full_name.empty? -%> <%= @user.full_name %>, @@ -33,6 +34,7 @@ The Arvados team. # Test the body of the sent email contains what we expect it to assert_equal Rails.configuration.Users.UserNotifierEmailFrom, email.from.first + assert_equal Rails.configuration.Users.UserNotifierEmailBcc.stringify_keys.keys, email.bcc assert_equal user.email, email.to.first assert_equal 'Welcome to Arvados - account enabled', email.subject assert (email.body.to_s.include? 'Your Arvados shell account has been set up'),