mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 01:35:10 +02:00
Convert specs to tests
This commit is contained in:
parent
c85ebf542d
commit
cb9479994f
4 changed files with 102 additions and 253 deletions
18
test/jobs/registrant_change_confirm_email_job_test.rb
Normal file
18
test/jobs/registrant_change_confirm_email_job_test.rb
Normal file
|
@ -0,0 +1,18 @@
|
|||
require 'test_helper'
|
||||
|
||||
class RegistrantChangeConfirmEmailJobTest < ActiveSupport::TestCase
|
||||
include ActionMailer::TestHelper
|
||||
|
||||
setup do
|
||||
ActionMailer::Base.deliveries.clear
|
||||
end
|
||||
|
||||
def test_delivers_email
|
||||
domain_id = domains(:shop).id
|
||||
new_registrant_id = contacts(:william).id
|
||||
|
||||
RegistrantChangeConfirmEmailJob.enqueue(domain_id, new_registrant_id)
|
||||
|
||||
assert_emails 1
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue