Sha256: 45e8e3c306bbabbf5c60a985ce5e23015b88b4f57fe278d7355983f24a4f4a19

Contents?: true

Size: 650 Bytes

Versions: 28

Compression:

Stored size: 650 Bytes

Contents

require "spec_helper"

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

  describe "#process" do
    it 'processes rubric associations' do
      expect {
        subject.process('spec/support/fixtures/reports/rubric_associations.csv', { models: ['rubric_associations'] }, 1)
      }.to change { RubricAssociation.count }.by(2)
      rubric_association = RubricAssociation.first
      expect(rubric_association.title).to eq("Rubric Association Title")
      expect(rubric_association.summary_data).to eq("Rubric Association Summary Data")
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

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