mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 14:44:47 +02:00
Merge pull request #1687 from internetee/log-bounced-emails
Gather data about bounced emails via API
This commit is contained in:
commit
903f14d0ba
18 changed files with 463 additions and 6 deletions
40
test/system/admin_area/bounced_mail_addresses_test.rb
Normal file
40
test/system/admin_area/bounced_mail_addresses_test.rb
Normal file
|
@ -0,0 +1,40 @@
|
|||
require 'application_system_test_case'
|
||||
|
||||
class AdminBouncedMailAddressesTest < ApplicationSystemTestCase
|
||||
include ActionView::Helpers::NumberHelper
|
||||
|
||||
def setup
|
||||
@bounced_mail = bounced_mail_addresses(:one)
|
||||
@original_default_language = Setting.default_language
|
||||
sign_in users(:admin)
|
||||
end
|
||||
|
||||
def teardown
|
||||
Setting.default_language = @original_default_language
|
||||
end
|
||||
|
||||
def test_shows_bounced_emails
|
||||
visit admin_bounced_mail_addresses_path
|
||||
assert_text @bounced_mail.status
|
||||
assert_text @bounced_mail.action
|
||||
assert_text @bounced_mail.diagnostic
|
||||
assert_text @bounced_mail.email
|
||||
end
|
||||
|
||||
def test_shows_detailed_bounced_email
|
||||
visit admin_bounced_mail_address_path(@bounced_mail)
|
||||
assert_text @bounced_mail.status
|
||||
assert_text @bounced_mail.action
|
||||
assert_text @bounced_mail.diagnostic
|
||||
assert_text @bounced_mail.email
|
||||
|
||||
assert_text @bounced_mail.message_id
|
||||
end
|
||||
|
||||
def test_deletes_registrar
|
||||
visit admin_bounced_mail_address_path(@bounced_mail)
|
||||
click_on 'Destroy'
|
||||
|
||||
assert_text 'Bounced mail address was successfully destroyed.'
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue