Sha256: 8f2ef1ddcf5559410eaae029b9990280472b7b20cb4807d5b565452d65e1ba42
Contents?: true
Size: 699 Bytes
Versions: 126
Compression:
Stored size: 699 Bytes
Contents
require "spec_helper" RSpec.describe CanvasSync::Jobs::SyncAssignmentGroupsJob do describe "#perform" do context "a term id is in the global_options" do it "enqueues a ReportStarter for the proserv_assignment_group_export_csv for the given term" do expect_any_instance_of(Bearcat::Client).to receive(:start_report) .with("self", "proserv_assignment_group_export_csv", { parameters: { enrollment_term_id: 1 } }) .and_return("id" => 1) expect(CanvasSync::Jobs::ReportChecker).to receive(:set).and_call_original set_batch_context(canvas_term_id: 1) CanvasSync::Jobs::SyncAssignmentGroupsJob.perform_now({}) end end end end
Version data entries
126 entries across 126 versions & 1 rubygems