From 74e506e456d46356188d35980f730effe82b5803 Mon Sep 17 00:00:00 2001 From: Yuri Rudman Date: Mon, 11 Mar 2019 12:19:01 -0400 Subject: [PATCH] rspec: check that miq_task_id and miq_callback present when submitting job --- spec/models/service_spec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/models/service_spec.rb b/spec/models/service_spec.rb index 6f5a4ee5e6da..c0bfc60e7591 100644 --- a/spec/models/service_spec.rb +++ b/spec/models/service_spec.rb @@ -452,6 +452,8 @@ expect(args).to include(:class_name => described_class.name, :method_name => "generate_chargeback_report", :args => {:report_source => "Test Run"}) + expect(args).to have_key(:miq_task_id) + expect(args).to have_key(:miq_callback) end expect(@service.queue_chargeback_report_generation(:report_source => "Test Run")).to be_kind_of(MiqTask) end