Skip to content

Commit

Permalink
rspec: check that miq_task_id and miq_callback present when submittin…
Browse files Browse the repository at this point in the history
…g job
  • Loading branch information
yrudman committed Mar 11, 2019
1 parent e9e9138 commit 74e506e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/models/service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 74e506e

Please sign in to comment.