Sha256: 778e78b45e0f80a453ed41caf2e7cc6fb1d0f3ad51dbfbb2a0007d56ff7140b2

Contents?: true

Size: 597 Bytes

Versions: 8

Compression:

Stored size: 597 Bytes

Contents

require 'spec_helper'

RSpec.describe CanvasSync::Jobs::SyncUsersJob do
  describe '#perform' do
    it 'enqueues a ReportStarter for a provisioning report across all terms with just users' do
      expect_any_instance_of(Bearcat::Client).to receive(:start_report)
        .with('self', 'proservices_provisioning_csv', { parameters: { users: true, include_deleted: true } })
        .and_return({ 'id' => 1 })

      expect(CanvasSync::Jobs::ReportChecker).to receive(:set).and_call_original

      CanvasSync::Jobs::SyncUsersJob.perform_now({ jobs: [], global_options: {}}, {})
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
canvas_sync-0.11.1 spec/canvas_sync/jobs/sync_users_job_spec.rb
canvas_sync-0.14.0 spec/canvas_sync/jobs/sync_users_job_spec.rb
canvas_sync-0.13.0 spec/canvas_sync/jobs/sync_users_job_spec.rb
canvas_sync-0.12.0 spec/canvas_sync/jobs/sync_users_job_spec.rb
canvas_sync-0.11.0 spec/canvas_sync/jobs/sync_users_job_spec.rb
canvas_sync-0.10.6 spec/canvas_sync/jobs/sync_users_job_spec.rb
canvas_sync-0.10.5 spec/canvas_sync/jobs/sync_users_job_spec.rb
canvas_sync-0.10.4 spec/canvas_sync/jobs/sync_users_job_spec.rb