Sha256: 2d02b916b974e2510c00d8999f08b14a330ccc67057f03c376c8252d534eb7b0

Contents?: true

Size: 588 Bytes

Versions: 56

Compression:

Stored size: 588 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', CanvasSync::Jobs::SyncUsersJob::REPORT_PARAMS)
        .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

56 entries across 56 versions & 1 rubygems

Version Path
canvas_sync-0.6.1 spec/canvas_sync/jobs/sync_users_job_spec.rb
canvas_sync-0.6.0 spec/canvas_sync/jobs/sync_users_job_spec.rb
canvas_sync-0.5.4 spec/canvas_sync/jobs/sync_users_job_spec.rb
canvas_sync-0.5.3 spec/canvas_sync/jobs/sync_users_job_spec.rb
canvas_sync-0.5.2 spec/canvas_sync/jobs/sync_users_job_spec.rb
canvas_sync-0.5.1 spec/canvas_sync/jobs/sync_users_job_spec.rb
canvas_sync-0.4.1 spec/canvas_sync/jobs/sync_users_job_spec.rb
canvas_sync-0.4.0 spec/canvas_sync/jobs/sync_users_job_spec.rb
canvas_sync-0.3.23 spec/canvas_sync/jobs/sync_users_job_spec.rb
canvas_sync-0.3.22 spec/canvas_sync/jobs/sync_users_job_spec.rb
canvas_sync-0.3.21 spec/canvas_sync/jobs/sync_users_job_spec.rb
canvas_sync-0.3.20 spec/canvas_sync/jobs/sync_users_job_spec.rb
canvas_sync-0.3.19 spec/canvas_sync/jobs/sync_users_job_spec.rb
canvas_sync-0.3.18 spec/canvas_sync/jobs/sync_users_job_spec.rb
canvas_sync-0.3.17 spec/canvas_sync/jobs/sync_users_job_spec.rb
canvas_sync-0.3.16 spec/canvas_sync/jobs/sync_users_job_spec.rb
canvas_sync-0.3.15 spec/canvas_sync/jobs/sync_users_job_spec.rb
canvas_sync-0.3.14 spec/canvas_sync/jobs/sync_users_job_spec.rb
canvas_sync-0.3.13 spec/canvas_sync/jobs/sync_users_job_spec.rb
canvas_sync-0.3.12 spec/canvas_sync/jobs/sync_users_job_spec.rb