Add admin mailers and tests to white_ips

This commit is contained in:
Sergei Tsoganov 2023-07-10 09:51:56 +03:00
parent 149cbb6138
commit f68d8e91c2
8 changed files with 45 additions and 6 deletions

View file

@ -21,6 +21,9 @@ class ReppV1WhiteIpsDeleteTest < ActionDispatch::IntegrationTest
assert_equal 1000, json[:code]
assert_equal 'Command completed successfully', json[:message]
refute WhiteIp.exists?(ip.id)
last_email = ActionMailer::Base.deliveries.last
assert last_email.subject.include?('Whitelisted IP Address Removal Notification')
end
def test_returns_error_response_if_throttled