Sha256: 785c77fc96f57b5c279d890b0fd7ce4ba8d210fc0960b9bebd8e0d3ae2dd3f01

Contents?: true

Size: 398 Bytes

Versions: 15

Compression:

Stored size: 398 Bytes

Contents

require "spec_helper"

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

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
canvas_sync-0.7.2 spec/canvas_sync/processors/context_module_items_processor_spec.rb
canvas_sync-0.7.1 spec/canvas_sync/processors/context_module_items_processor_spec.rb
canvas_sync-0.7.0 spec/canvas_sync/processors/context_module_items_processor_spec.rb
canvas_sync-0.6.4 spec/canvas_sync/processors/context_module_items_processor_spec.rb
canvas_sync-0.6.3 spec/canvas_sync/processors/context_module_items_processor_spec.rb
canvas_sync-0.6.2 spec/canvas_sync/processors/context_module_items_processor_spec.rb
canvas_sync-0.6.1 spec/canvas_sync/processors/context_module_items_processor_spec.rb
canvas_sync-0.6.0 spec/canvas_sync/processors/context_module_items_processor_spec.rb
canvas_sync-0.5.4 spec/canvas_sync/processors/context_module_items_processor_spec.rb
canvas_sync-0.5.3 spec/canvas_sync/processors/context_module_items_processor_spec.rb
canvas_sync-0.5.2 spec/canvas_sync/processors/context_module_items_processor_spec.rb
canvas_sync-0.5.1 spec/canvas_sync/processors/context_module_items_processor_spec.rb
canvas_sync-0.4.1 spec/canvas_sync/processors/context_module_items_processor_spec.rb
canvas_sync-0.4.0 spec/canvas_sync/processors/context_module_items_processor_spec.rb
canvas_sync-0.3.23 spec/canvas_sync/processors/context_module_items_processor_spec.rb