Sha256: f14b9af52b3a6ab6f6385fdd60d45614849b649d4bb3799298fce35ff946f2b5

Contents?: true

Size: 384 Bytes

Versions: 150

Compression:

Stored size: 384 Bytes

Contents

require "spec_helper"

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

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

Version data entries

150 entries across 150 versions & 1 rubygems

Version Path
canvas_sync-0.22.3 spec/canvas_sync/processors/context_modules_processor_spec.rb
canvas_sync-0.22.2 spec/canvas_sync/processors/context_modules_processor_spec.rb
canvas_sync-0.22.1 spec/canvas_sync/processors/context_modules_processor_spec.rb
canvas_sync-0.22.0 spec/canvas_sync/processors/context_modules_processor_spec.rb
canvas_sync-0.22.0.beta8 spec/canvas_sync/processors/context_modules_processor_spec.rb
canvas_sync-0.22.0.beta7 spec/canvas_sync/processors/context_modules_processor_spec.rb
canvas_sync-0.22.0.beta6 spec/canvas_sync/processors/context_modules_processor_spec.rb
canvas_sync-0.22.0.beta5 spec/canvas_sync/processors/context_modules_processor_spec.rb
canvas_sync-0.22.0.beta4 spec/canvas_sync/processors/context_modules_processor_spec.rb
canvas_sync-0.22.0.beta3 spec/canvas_sync/processors/context_modules_processor_spec.rb
canvas_sync-0.22.0.beta2 spec/canvas_sync/processors/context_modules_processor_spec.rb
canvas_sync-0.22.0.beta1 spec/canvas_sync/processors/context_modules_processor_spec.rb
canvas_sync-0.21.1 spec/canvas_sync/processors/context_modules_processor_spec.rb
canvas_sync-0.21.1.beta1 spec/canvas_sync/processors/context_modules_processor_spec.rb
canvas_sync-0.21.0 spec/canvas_sync/processors/context_modules_processor_spec.rb
canvas_sync-0.21.0.beta5 spec/canvas_sync/processors/context_modules_processor_spec.rb
canvas_sync-0.21.0.beta4 spec/canvas_sync/processors/context_modules_processor_spec.rb
canvas_sync-0.21.0.beta3 spec/canvas_sync/processors/context_modules_processor_spec.rb
canvas_sync-0.21.0.beta2 spec/canvas_sync/processors/context_modules_processor_spec.rb
canvas_sync-0.21.0.beta1 spec/canvas_sync/processors/context_modules_processor_spec.rb