mirror of
https://github.com/internetee/registry.git
synced 2025-07-28 05:26:17 +02:00
Add admin mailers and tests to white_ips
This commit is contained in:
parent
149cbb6138
commit
f68d8e91c2
8 changed files with 45 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue