Sha256: 16495626e9d06415702bc17c1f70b42dd948a0ae6382edc58fa10c6f41027fcf
Contents?: true
Size: 707 Bytes
Versions: 15
Compression:
Stored size: 707 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", { parameters: { enrollment_term_id: 1, include_all: nil } }) .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
15 entries across 15 versions & 1 rubygems