Sha256: 11585cf10c873f9fa3731f1dac96d79f34c58839c97d82ac3afd53478a55059a

Contents?: true

Size: 401 Bytes

Versions: 155

Compression:

Stored size: 401 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", {}, 1)
      }.to change { ContextModuleItem.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/context_module_items_processor_spec.rb
canvas_sync-0.10.3 spec/canvas_sync/processors/context_module_items_processor_spec.rb
canvas_sync-0.10.2 spec/canvas_sync/processors/context_module_items_processor_spec.rb
canvas_sync-0.10.0 spec/canvas_sync/processors/context_module_items_processor_spec.rb
canvas_sync-0.9.4 spec/canvas_sync/processors/context_module_items_processor_spec.rb
canvas_sync-0.9.3 spec/canvas_sync/processors/context_module_items_processor_spec.rb
canvas_sync-0.9.2 spec/canvas_sync/processors/context_module_items_processor_spec.rb
canvas_sync-0.9.1 spec/canvas_sync/processors/context_module_items_processor_spec.rb
canvas_sync-0.9.0 spec/canvas_sync/processors/context_module_items_processor_spec.rb
canvas_sync-0.8.4 spec/canvas_sync/processors/context_module_items_processor_spec.rb
canvas_sync-0.8.3 spec/canvas_sync/processors/context_module_items_processor_spec.rb
canvas_sync-0.8.2 spec/canvas_sync/processors/context_module_items_processor_spec.rb
canvas_sync-0.8.1 spec/canvas_sync/processors/context_module_items_processor_spec.rb
canvas_sync-0.8.0 spec/canvas_sync/processors/context_module_items_processor_spec.rb
canvas_sync-0.7.3 spec/canvas_sync/processors/context_module_items_processor_spec.rb