Sha256: 74ddae43c7f56c94c4858b00a3d8d732b9f9bc2e1f1f9cabbcf21185afdf6b84

Contents?: true

Size: 452 Bytes

Versions: 119

Compression:

Stored size: 452 Bytes

Contents

require 'spec_helper'

RSpec.describe CanvasSync::Jobs::SyncAdminsJob do
  describe '#perform' do
    let!(:account) { FactoryGirl.create(:account, canvas_id: 1) }
    let(:admin_params) { open_canvas_fixture('admins') }

    it 'retrieves all admins from the Canvas API and then invokes the next job' do
      expect {
        CanvasSync::Jobs::SyncAdminsJob.perform_now({})
      }.to change { Admin.count }.by(admin_params.length)
    end
  end
end

Version data entries

119 entries across 119 versions & 1 rubygems

Version Path
canvas_sync-0.22.1 spec/canvas_sync/jobs/sync_admins_job_spec.rb
canvas_sync-0.22.0 spec/canvas_sync/jobs/sync_admins_job_spec.rb
canvas_sync-0.22.0.beta8 spec/canvas_sync/jobs/sync_admins_job_spec.rb
canvas_sync-0.22.0.beta7 spec/canvas_sync/jobs/sync_admins_job_spec.rb
canvas_sync-0.22.0.beta6 spec/canvas_sync/jobs/sync_admins_job_spec.rb
canvas_sync-0.22.0.beta5 spec/canvas_sync/jobs/sync_admins_job_spec.rb
canvas_sync-0.22.0.beta4 spec/canvas_sync/jobs/sync_admins_job_spec.rb
canvas_sync-0.22.0.beta3 spec/canvas_sync/jobs/sync_admins_job_spec.rb
canvas_sync-0.22.0.beta2 spec/canvas_sync/jobs/sync_admins_job_spec.rb
canvas_sync-0.22.0.beta1 spec/canvas_sync/jobs/sync_admins_job_spec.rb
canvas_sync-0.21.1 spec/canvas_sync/jobs/sync_admins_job_spec.rb
canvas_sync-0.21.1.beta1 spec/canvas_sync/jobs/sync_admins_job_spec.rb
canvas_sync-0.21.0 spec/canvas_sync/jobs/sync_admins_job_spec.rb
canvas_sync-0.21.0.beta5 spec/canvas_sync/jobs/sync_admins_job_spec.rb
canvas_sync-0.21.0.beta4 spec/canvas_sync/jobs/sync_admins_job_spec.rb
canvas_sync-0.21.0.beta3 spec/canvas_sync/jobs/sync_admins_job_spec.rb
canvas_sync-0.21.0.beta2 spec/canvas_sync/jobs/sync_admins_job_spec.rb
canvas_sync-0.21.0.beta1 spec/canvas_sync/jobs/sync_admins_job_spec.rb
canvas_sync-0.20.5 spec/canvas_sync/jobs/sync_admins_job_spec.rb
canvas_sync-0.20.4 spec/canvas_sync/jobs/sync_admins_job_spec.rb