Sha256: f1967660f4af3e2321132ba196a76bd8d645124b43efa17299ff076e7593e8b9

Contents?: true

Size: 367 Bytes

Versions: 155

Compression:

Stored size: 367 Bytes

Contents

require "spec_helper"

RSpec.describe CanvasSync::Processors::SubmissionsProcessor do
  let(:subject) { CanvasSync::Processors::SubmissionsProcessor }

  describe "#process" do
    it "inserts submissions" do
      expect {
        subject.process("spec/support/fixtures/reports/submissions.csv", {}, 1)
      }.to change { Submission.count }.by(2)
    end
  end
end

Version data entries

155 entries across 155 versions & 1 rubygems

Version Path
canvas_sync-0.17.6.beta1 spec/canvas_sync/processors/submissions_processor_spec.rb
canvas_sync-0.17.5 spec/canvas_sync/processors/submissions_processor_spec.rb
canvas_sync-0.17.5.beta2 spec/canvas_sync/processors/submissions_processor_spec.rb
canvas_sync-0.17.5.beta1 spec/canvas_sync/processors/submissions_processor_spec.rb
canvas_sync-0.17.4 spec/canvas_sync/processors/submissions_processor_spec.rb
canvas_sync-0.17.3.beta3 spec/canvas_sync/processors/submissions_processor_spec.rb
canvas_sync-0.17.3.beta2 spec/canvas_sync/processors/submissions_processor_spec.rb
canvas_sync-0.17.3.beta1 spec/canvas_sync/processors/submissions_processor_spec.rb
canvas_sync-0.17.2 spec/canvas_sync/processors/submissions_processor_spec.rb
canvas_sync-0.17.1 spec/canvas_sync/processors/submissions_processor_spec.rb
canvas_sync-0.17.0 spec/canvas_sync/processors/submissions_processor_spec.rb
canvas_sync-0.17.0.beta15 spec/canvas_sync/processors/submissions_processor_spec.rb
canvas_sync-0.17.0.beta14 spec/canvas_sync/processors/submissions_processor_spec.rb
canvas_sync-0.17.0.beta13 spec/canvas_sync/processors/submissions_processor_spec.rb
canvas_sync-0.17.0.beta12 spec/canvas_sync/processors/submissions_processor_spec.rb
canvas_sync-0.17.0.beta11 spec/canvas_sync/processors/submissions_processor_spec.rb
canvas_sync-0.17.0.beta10 spec/canvas_sync/processors/submissions_processor_spec.rb
canvas_sync-0.17.0.beta9 spec/canvas_sync/processors/submissions_processor_spec.rb
canvas_sync-0.17.0.beta8 spec/canvas_sync/processors/submissions_processor_spec.rb
canvas_sync-0.17.0.beta7 spec/canvas_sync/processors/submissions_processor_spec.rb