Sha256: 904c8a4b1d92bde3fce604b91129ed38cd01134103f318de85e1de7e832adf51

Contents?: true

Size: 707 Bytes

Versions: 154

Compression:

Stored size: 707 Bytes

Contents

require "spec_helper"

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

  describe "#process" do
    it "inserts row" do
      expect {
        subject.process(
          "spec/support/fixtures/reports/courses.csv",
          {
            report_name: 'proservices_provisioning_csv',
            model: 'courses',
            mapping: 'courses',
            klass: 'Course',
            term_scope: 'active',
            params: {
              "parameters[include_deleted]" => true,
              "parameters[courses]" => true
            }
          },
          1
        )
      }.to change { Course.count }.by(2)
    end
  end
end

Version data entries

154 entries across 154 versions & 1 rubygems

Version Path
canvas_sync-0.22.9 spec/canvas_sync/processors/normal_processor_spec.rb
canvas_sync-0.22.8 spec/canvas_sync/processors/normal_processor_spec.rb
canvas_sync-0.22.6 spec/canvas_sync/processors/normal_processor_spec.rb
canvas_sync-0.22.5 spec/canvas_sync/processors/normal_processor_spec.rb
canvas_sync-0.22.4 spec/canvas_sync/processors/normal_processor_spec.rb
canvas_sync-0.22.3 spec/canvas_sync/processors/normal_processor_spec.rb
canvas_sync-0.22.2 spec/canvas_sync/processors/normal_processor_spec.rb
canvas_sync-0.22.1 spec/canvas_sync/processors/normal_processor_spec.rb
canvas_sync-0.22.0 spec/canvas_sync/processors/normal_processor_spec.rb
canvas_sync-0.22.0.beta8 spec/canvas_sync/processors/normal_processor_spec.rb
canvas_sync-0.22.0.beta7 spec/canvas_sync/processors/normal_processor_spec.rb
canvas_sync-0.22.0.beta6 spec/canvas_sync/processors/normal_processor_spec.rb
canvas_sync-0.22.0.beta5 spec/canvas_sync/processors/normal_processor_spec.rb
canvas_sync-0.22.0.beta4 spec/canvas_sync/processors/normal_processor_spec.rb
canvas_sync-0.22.0.beta3 spec/canvas_sync/processors/normal_processor_spec.rb
canvas_sync-0.22.0.beta2 spec/canvas_sync/processors/normal_processor_spec.rb
canvas_sync-0.22.0.beta1 spec/canvas_sync/processors/normal_processor_spec.rb
canvas_sync-0.21.1 spec/canvas_sync/processors/normal_processor_spec.rb
canvas_sync-0.21.1.beta1 spec/canvas_sync/processors/normal_processor_spec.rb
canvas_sync-0.21.0 spec/canvas_sync/processors/normal_processor_spec.rb