mirror of
https://github.com/internetee/registry.git
synced 2025-07-28 05:26:17 +02:00
Updated admin integration test
This commit is contained in:
parent
b7f31ea7e2
commit
c5dc81ede9
1 changed files with 3 additions and 0 deletions
|
@ -41,6 +41,7 @@ class AdminAreaWhiteIpsIntegrationTest < JavaScriptApplicationSystemTestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_update_whitelisted_ip
|
def test_update_whitelisted_ip
|
||||||
|
@white_ip.update!(committed: false)
|
||||||
visit_info_whitelisted_ip_page
|
visit_info_whitelisted_ip_page
|
||||||
click_on 'Edit'
|
click_on 'Edit'
|
||||||
|
|
||||||
|
@ -50,6 +51,8 @@ class AdminAreaWhiteIpsIntegrationTest < JavaScriptApplicationSystemTestCase
|
||||||
click_on 'Save'
|
click_on 'Save'
|
||||||
|
|
||||||
assert_text 'Record updated'
|
assert_text 'Record updated'
|
||||||
|
assert @white_ip.committed
|
||||||
|
|
||||||
last_email = ActionMailer::Base.deliveries.last
|
last_email = ActionMailer::Base.deliveries.last
|
||||||
assert last_email.subject.include?('Whitelisted IP Address Activation Confirmation')
|
assert last_email.subject.include?('Whitelisted IP Address Activation Confirmation')
|
||||||
assert_equal last_email.to, @registrar.email
|
assert_equal last_email.to, @registrar.email
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue