Sha256: dd4d398e4ae30c5404bd80575a82bf42409c01b327a1aef9412d9e9d7a23425e
Contents?: true
Size: 669 Bytes
Versions: 1
Compression:
Stored size: 669 Bytes
Contents
require "spec_helper" RSpec.describe CanvasSync::Jobs::SyncSubmissionsJob do describe "#perform" do context "a term id is in the global_options" do it "enqueues a ReportStarter for the proserv_student_submissions_csv for the given term" do expect_any_instance_of(Bearcat::Client).to receive(:start_report) .with("self", "proserv_student_submissions_csv", enrollment_term_id: 1) .and_return("id" => 1) expect(CanvasSync::Jobs::ReportChecker).to receive(:set).and_call_original CanvasSync::Jobs::SyncSubmissionsJob.perform_now({ jobs: [], global_options: { canvas_term_id: 1 } }, {}) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
canvas_sync-0.3.21 | spec/canvas_sync/jobs/sync_submissions_job_spec.rb |