Sha256: 943fda8181aa0024bd835e59d1f148eac1fa819e3238f6d34b8985778e9d9250

Contents?: true

Size: 513 Bytes

Versions: 28

Compression:

Stored size: 513 Bytes

Contents

require "spec_helper"

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

  describe "#process" do
    it 'inserts rubrics' do
      expect {
        subject.process('spec/support/fixtures/reports/rubrics.csv', { models: ['rubrics'] }, 1)
      }.to change { Rubric.count }.by(2)
      rubric = Rubric.first
      expect(rubric.title).to eq("Assignment 1")
      expect(rubric.description).to eq("Assignment 1 description")
    end

  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

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