Sha256: dc466dd84b1cf516d1bad1436d216560d13e7be5ca65a00ae59f4ba2db4f67af
Contents?: true
Size: 871 Bytes
Versions: 6
Compression:
Stored size: 871 Bytes
Contents
require 'spec_helper' RSpec.describe CanvasSync::Jobs::ReportStarter do let(:report_params) { { 'parameters[users]' => true } } let(:report_name) { 'provisioning_csv' } let(:processor) { 'CoolProcessor' } describe '#perform' do it 'tells Canvas to start the report and then enqueues a ReportChecker with the report id' do expect_any_instance_of(Bearcat::Client).to receive(:start_report) .with('self', report_name, report_params) .and_return({ 'id' => 1 }) expect(CanvasSync::Jobs::ReportChecker).to receive(:set).and_call_original CanvasSync::Jobs::ReportStarter.perform_now( [], report_name, report_params, processor, { models: ['users'] }) end end end
Version data entries
6 entries across 6 versions & 1 rubygems