Sha256: 50ddb1e52a9581242926a1783fbd65ffdaa1b534e02dae45229c336b6a94bb27
Contents?: true
Size: 727 Bytes
Versions: 18
Compression:
Stored size: 727 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, enrollment_batch_size: nil } }) .and_return("id" => 1) expect(CanvasSync::Jobs::ReportChecker).to receive(:set).and_call_original set_batch_context(canvas_term_id: 1) CanvasSync::Jobs::SyncSubmissionsJob.perform_now({}) end end end end
Version data entries
18 entries across 18 versions & 1 rubygems