mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 02:35:57 +02:00
parent
e56e27327b
commit
4a84157a83
2 changed files with 5 additions and 3 deletions
|
@ -17,7 +17,8 @@ RSpec.describe DomainDeleteForcedEmailJob do
|
|||
|
||||
after :example do
|
||||
domain_id = 1
|
||||
described_class.enqueue(domain_id)
|
||||
template_name = 'removed_company'
|
||||
described_class.enqueue(domain_id, template_name)
|
||||
end
|
||||
|
||||
it 'creates log record' do
|
||||
|
@ -32,7 +33,8 @@ RSpec.describe DomainDeleteForcedEmailJob do
|
|||
it 'sends email' do
|
||||
expect(DomainDeleteMailer).to receive(:forced).with(domain: domain,
|
||||
registrar: 'registrar',
|
||||
registrant: 'registrant')
|
||||
registrant: 'registrant',
|
||||
template_name: 'removed_company')
|
||||
.and_return(message)
|
||||
expect(message).to receive(:deliver_now)
|
||||
end
|
||||
|
|
|
@ -143,7 +143,7 @@ RSpec.describe DomainPresenter do
|
|||
view.cancel_force_delete_admin_domain_path(domain),
|
||||
method: :patch,
|
||||
data: { confirm: 'Are you sure you want cancel force delete procedure?' },
|
||||
class: 'btn btn-warning')
|
||||
class: 'btn btn-primary')
|
||||
expect(presenter.force_delete_toggle_btn).to eq(html)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue