mirror of
https://github.com/internetee/registry.git
synced 2025-08-16 22:43:50 +02:00
made poll messaging separetly
This commit is contained in:
parent
682d9f6de1
commit
7343e71096
3 changed files with 32 additions and 26 deletions
|
@ -14,9 +14,13 @@ class DomainsControllerTest < ApplicationIntegrationTest
|
|||
# Status OK is removed because, if:
|
||||
# (statuses.length > 1) || !valid?
|
||||
# then status OK is removed by manage_automatic_statuses method in domain.rb
|
||||
assert_equal "Set on #{domains(:shop).name}: #{DomainStatus::PENDING_UPDATE}. Removed from #{domains(:shop).name}: #{DomainStatus::OK}", domains(:shop).registrar.notifications.last.text
|
||||
notifications = domains(:shop).registrar.notifications.last(2)
|
||||
assert_equal "#{DomainStatus::PENDING_UPDATE} set on domain #{domains(:shop).name}", notifications.first.text
|
||||
assert_equal "#{DomainStatus::OK} is cancelled on domain #{domains(:shop).name}", notifications.last.text
|
||||
|
||||
patch admin_domain_path(domains(:shop)), params: { domain: { statuses: [DomainStatus::PENDING_DELETE_CONFIRMATION] } }
|
||||
assert_equal "Set on #{domains(:shop).name}: #{DomainStatus::PENDING_DELETE_CONFIRMATION}. Removed from #{domains(:shop).name}: #{DomainStatus::PENDING_UPDATE}", domains(:shop).registrar.notifications.last.text
|
||||
notifications = domains(:shop).registrar.notifications.last(2)
|
||||
assert_equal "#{DomainStatus::PENDING_DELETE_CONFIRMATION} set on domain #{domains(:shop).name}", notifications.first.text
|
||||
assert_equal "#{DomainStatus::PENDING_UPDATE} is cancelled on domain #{domains(:shop).name}", notifications.last.text
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue