recruiter Resend welcome email
This commit is contained in:
@ -102,4 +102,15 @@ class RecruiterControllerTest < ActionDispatch::IntegrationTest
|
||||
assert assigns(:candidate), "@candidate not present"
|
||||
assert_match(/failed.*save/i, flash[:error])
|
||||
end
|
||||
|
||||
test 'should queue up a welcome email [resend]' do
|
||||
auth_recruiter
|
||||
|
||||
assert_enqueued_jobs 1 do
|
||||
get resend_welcome_path(id: candidates(:peggy)), xhr: true
|
||||
end
|
||||
assert_response :success
|
||||
data = JSON.parse(response.body)
|
||||
assert_match 'queued', data["message"]
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user