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.10.4 spec/canvas_sync/processors/submissions_processor_spec.rb
canvas_sync-0.10.3 spec/canvas_sync/processors/submissions_processor_spec.rb
canvas_sync-0.10.2 spec/canvas_sync/processors/submissions_processor_spec.rb
canvas_sync-0.10.0 spec/canvas_sync/processors/submissions_processor_spec.rb
canvas_sync-0.9.4 spec/canvas_sync/processors/submissions_processor_spec.rb
canvas_sync-0.9.3 spec/canvas_sync/processors/submissions_processor_spec.rb
canvas_sync-0.9.2 spec/canvas_sync/processors/submissions_processor_spec.rb
canvas_sync-0.9.1 spec/canvas_sync/processors/submissions_processor_spec.rb
canvas_sync-0.9.0 spec/canvas_sync/processors/submissions_processor_spec.rb
canvas_sync-0.8.4 spec/canvas_sync/processors/submissions_processor_spec.rb
canvas_sync-0.8.3 spec/canvas_sync/processors/submissions_processor_spec.rb
canvas_sync-0.8.2 spec/canvas_sync/processors/submissions_processor_spec.rb
canvas_sync-0.8.1 spec/canvas_sync/processors/submissions_processor_spec.rb
canvas_sync-0.8.0 spec/canvas_sync/processors/submissions_processor_spec.rb
canvas_sync-0.7.3 spec/canvas_sync/processors/submissions_processor_spec.rb