Sha256: bd0e7d993be2f2a4b1534662a0e726ab363c20a15a6f615476dc5c943387d83c

Contents?: true

Size: 399 Bytes

Versions: 126

Compression:

Stored size: 399 Bytes

Contents

require 'spec_helper'

RSpec.describe CanvasSync::Jobs::SyncTermsJob do
  describe '#perform' do
    let(:term_params) { open_canvas_fixture('terms')['enrollment_terms'] }

    it 'retrieves all terms from the Canvas API and then invokes the next job' do
      expect {
        CanvasSync::Jobs::SyncTermsJob.perform_now({})
      }.to change { Term.count }.by(term_params.length)
    end
  end
end

Version data entries

126 entries across 126 versions & 1 rubygems

Version Path
canvas_sync-0.17.23.beta1 spec/canvas_sync/jobs/sync_terms_job_spec.rb
canvas_sync-0.17.20 spec/canvas_sync/jobs/sync_terms_job_spec.rb
canvas_sync-0.17.19 spec/canvas_sync/jobs/sync_terms_job_spec.rb
canvas_sync-0.17.18 spec/canvas_sync/jobs/sync_terms_job_spec.rb
canvas_sync-0.17.17.beta1 spec/canvas_sync/jobs/sync_terms_job_spec.rb
canvas_sync-0.17.16 spec/canvas_sync/jobs/sync_terms_job_spec.rb
canvas_sync-0.17.15 spec/canvas_sync/jobs/sync_terms_job_spec.rb
canvas_sync-0.17.14 spec/canvas_sync/jobs/sync_terms_job_spec.rb
canvas_sync-0.17.13 spec/canvas_sync/jobs/sync_terms_job_spec.rb
canvas_sync-0.17.12 spec/canvas_sync/jobs/sync_terms_job_spec.rb
canvas_sync-0.17.10.beta2 spec/canvas_sync/jobs/sync_terms_job_spec.rb
canvas_sync-0.17.10.beta1 spec/canvas_sync/jobs/sync_terms_job_spec.rb
canvas_sync-0.17.8 spec/canvas_sync/jobs/sync_terms_job_spec.rb
canvas_sync-0.17.8.beta4 spec/canvas_sync/jobs/sync_terms_job_spec.rb
canvas_sync-0.17.8.beta3 spec/canvas_sync/jobs/sync_terms_job_spec.rb
canvas_sync-0.17.8.beta2 spec/canvas_sync/jobs/sync_terms_job_spec.rb
canvas_sync-0.17.8.beta1 spec/canvas_sync/jobs/sync_terms_job_spec.rb
canvas_sync-0.17.7 spec/canvas_sync/jobs/sync_terms_job_spec.rb
canvas_sync-0.17.7.beta1 spec/canvas_sync/jobs/sync_terms_job_spec.rb
canvas_sync-0.17.6 spec/canvas_sync/jobs/sync_terms_job_spec.rb