Sha256: 0c8d9a6cb9558f90dd3bf2224af5dc1daf37f2eef4376e2ccdaacca99a7caa78
Contents?: true
Size: 703 Bytes
Versions: 30
Compression:
Stored size: 703 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 CanvasSync::Jobs::SyncAssignmentGroupsJob.perform_now({ jobs: [], global_options: { canvas_term_id: 1 } }, {}) end end end end
Version data entries
30 entries across 30 versions & 1 rubygems