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.21.0.beta5 spec/canvas_sync/processors/context_module_items_processor_spec.rb
canvas_sync-0.21.0.beta4 spec/canvas_sync/processors/context_module_items_processor_spec.rb
canvas_sync-0.21.0.beta3 spec/canvas_sync/processors/context_module_items_processor_spec.rb
canvas_sync-0.21.0.beta2 spec/canvas_sync/processors/context_module_items_processor_spec.rb
canvas_sync-0.21.0.beta1 spec/canvas_sync/processors/context_module_items_processor_spec.rb
canvas_sync-0.20.5 spec/canvas_sync/processors/context_module_items_processor_spec.rb
canvas_sync-0.20.4 spec/canvas_sync/processors/context_module_items_processor_spec.rb
canvas_sync-0.20.3 spec/canvas_sync/processors/context_module_items_processor_spec.rb
canvas_sync-0.19.1.beta2 spec/canvas_sync/processors/context_module_items_processor_spec.rb
canvas_sync-0.19.1.beta1 spec/canvas_sync/processors/context_module_items_processor_spec.rb
canvas_sync-0.19.0 spec/canvas_sync/processors/context_module_items_processor_spec.rb
canvas_sync-0.19.0.beta10 spec/canvas_sync/processors/context_module_items_processor_spec.rb
canvas_sync-0.19.0.beta9 spec/canvas_sync/processors/context_module_items_processor_spec.rb
canvas_sync-0.19.0.beta8 spec/canvas_sync/processors/context_module_items_processor_spec.rb
canvas_sync-0.19.0.beta7 spec/canvas_sync/processors/context_module_items_processor_spec.rb
canvas_sync-0.19.0.beta6 spec/canvas_sync/processors/context_module_items_processor_spec.rb
canvas_sync-0.19.0.beta5 spec/canvas_sync/processors/context_module_items_processor_spec.rb
canvas_sync-0.19.0.beta4 spec/canvas_sync/processors/context_module_items_processor_spec.rb
canvas_sync-0.19.0.beta3 spec/canvas_sync/processors/context_module_items_processor_spec.rb
canvas_sync-0.19.0.beta2 spec/canvas_sync/processors/context_module_items_processor_spec.rb