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.22.9 spec/canvas_sync/jobs/sync_terms_job_spec.rb
canvas_sync-0.22.8 spec/canvas_sync/jobs/sync_terms_job_spec.rb
canvas_sync-0.22.6 spec/canvas_sync/jobs/sync_terms_job_spec.rb
canvas_sync-0.22.5 spec/canvas_sync/jobs/sync_terms_job_spec.rb
canvas_sync-0.22.4 spec/canvas_sync/jobs/sync_terms_job_spec.rb
canvas_sync-0.22.3 spec/canvas_sync/jobs/sync_terms_job_spec.rb
canvas_sync-0.22.2 spec/canvas_sync/jobs/sync_terms_job_spec.rb
canvas_sync-0.22.1 spec/canvas_sync/jobs/sync_terms_job_spec.rb
canvas_sync-0.22.0 spec/canvas_sync/jobs/sync_terms_job_spec.rb
canvas_sync-0.22.0.beta8 spec/canvas_sync/jobs/sync_terms_job_spec.rb
canvas_sync-0.22.0.beta7 spec/canvas_sync/jobs/sync_terms_job_spec.rb
canvas_sync-0.22.0.beta6 spec/canvas_sync/jobs/sync_terms_job_spec.rb
canvas_sync-0.22.0.beta5 spec/canvas_sync/jobs/sync_terms_job_spec.rb
canvas_sync-0.22.0.beta4 spec/canvas_sync/jobs/sync_terms_job_spec.rb
canvas_sync-0.22.0.beta3 spec/canvas_sync/jobs/sync_terms_job_spec.rb
canvas_sync-0.22.0.beta2 spec/canvas_sync/jobs/sync_terms_job_spec.rb
canvas_sync-0.22.0.beta1 spec/canvas_sync/jobs/sync_terms_job_spec.rb
canvas_sync-0.21.1 spec/canvas_sync/jobs/sync_terms_job_spec.rb
canvas_sync-0.21.1.beta1 spec/canvas_sync/jobs/sync_terms_job_spec.rb
canvas_sync-0.21.0 spec/canvas_sync/jobs/sync_terms_job_spec.rb