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.10.4 spec/canvas_sync/processors/normal_processor_spec.rb
canvas_sync-0.10.3 spec/canvas_sync/processors/normal_processor_spec.rb
canvas_sync-0.10.2 spec/canvas_sync/processors/normal_processor_spec.rb
canvas_sync-0.10.0 spec/canvas_sync/processors/normal_processor_spec.rb
canvas_sync-0.9.4 spec/canvas_sync/processors/normal_processor_spec.rb
canvas_sync-0.9.3 spec/canvas_sync/processors/normal_processor_spec.rb
canvas_sync-0.9.2 spec/canvas_sync/processors/normal_processor_spec.rb
canvas_sync-0.9.1 spec/canvas_sync/processors/normal_processor_spec.rb
canvas_sync-0.9.0 spec/canvas_sync/processors/normal_processor_spec.rb
canvas_sync-0.8.4 spec/canvas_sync/processors/normal_processor_spec.rb
canvas_sync-0.8.3 spec/canvas_sync/processors/normal_processor_spec.rb
canvas_sync-0.8.2 spec/canvas_sync/processors/normal_processor_spec.rb
canvas_sync-0.8.1 spec/canvas_sync/processors/normal_processor_spec.rb
canvas_sync-0.8.0 spec/canvas_sync/processors/normal_processor_spec.rb