|  |  | @ -23,11 +23,11 @@ RSpec.describe SendSubmissionCompletedWebhookRequestJob do | 
			
		
	
		
		
			
				
					
					|  |  |  |       described_class.new.perform('submission_id' => submission.id, 'webhook_url_id' => webhook_url.id) |  |  |  |       described_class.new.perform('submission_id' => submission.id, 'webhook_url_id' => webhook_url.id) | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |       expect(WebMock).to have_requested(:post, webhook_url.url).with( |  |  |  |       expect(WebMock).to have_requested(:post, webhook_url.url).with( | 
			
		
	
		
		
			
				
					
					|  |  |  |         body: replace_timestamps({ |  |  |  |         body: { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |           'event_type' => 'submission.completed', |  |  |  |           'event_type' => 'submission.completed', | 
			
		
	
		
		
			
				
					
					|  |  |  |           'timestamp' => Time.current, |  |  |  |           'timestamp' => /.*/, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |           'data' => Submissions::SerializeForApi.call(submission.reload) |  |  |  |           'data' => JSON.parse(Submissions::SerializeForApi.call(submission.reload).to_json) | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         }.deep_stringify_keys), |  |  |  |         }, | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         headers: { |  |  |  |         headers: { | 
			
		
	
		
		
			
				
					
					|  |  |  |           'Content-Type' => 'application/json', |  |  |  |           'Content-Type' => 'application/json', | 
			
		
	
		
		
			
				
					
					|  |  |  |           'User-Agent' => 'DocuSeal.com Webhook' |  |  |  |           'User-Agent' => 'DocuSeal.com Webhook' | 
			
		
	
	
		
		
			
				
					|  |  | @ -40,11 +40,11 @@ RSpec.describe SendSubmissionCompletedWebhookRequestJob do | 
			
		
	
		
		
			
				
					
					|  |  |  |       described_class.new.perform('submission_id' => submission.id, 'webhook_url_id' => webhook_url.id) |  |  |  |       described_class.new.perform('submission_id' => submission.id, 'webhook_url_id' => webhook_url.id) | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |       expect(WebMock).to have_requested(:post, webhook_url.url).with( |  |  |  |       expect(WebMock).to have_requested(:post, webhook_url.url).with( | 
			
		
	
		
		
			
				
					
					|  |  |  |         body: replace_timestamps({ |  |  |  |         body: { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |           'event_type' => 'submission.completed', |  |  |  |           'event_type' => 'submission.completed', | 
			
		
	
		
		
			
				
					
					|  |  |  |           'timestamp' => Time.current, |  |  |  |           'timestamp' => /.*/, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |           'data' => Submissions::SerializeForApi.call(submission.reload) |  |  |  |           'data' => JSON.parse(Submissions::SerializeForApi.call(submission.reload).to_json) | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         }.deep_stringify_keys), |  |  |  |         }, | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         headers: { |  |  |  |         headers: { | 
			
		
	
		
		
			
				
					
					|  |  |  |           'Content-Type' => 'application/json', |  |  |  |           'Content-Type' => 'application/json', | 
			
		
	
		
		
			
				
					
					|  |  |  |           'User-Agent' => 'DocuSeal.com Webhook', |  |  |  |           'User-Agent' => 'DocuSeal.com Webhook', | 
			
		
	
	
		
		
			
				
					|  |  | 
 |