Sha256: adefe35105dc4afa12b56df91264463875ad27e796dcf6b8b7bc94889b0ce3ba

Contents?: true

Size: 445 Bytes

Versions: 119

Compression:

Stored size: 445 Bytes

Contents

require 'spec_helper'

RSpec.describe CanvasSync::Jobs::SyncRolesJob do
  describe '#perform' do
    let!(:account) { FactoryGirl.create(:account, canvas_id: 1) }
    let(:role_params) { open_canvas_fixture('roles') }

    it 'retrieves all roles from the Canvas API and then invokes the next job' do
      expect {
        CanvasSync::Jobs::SyncRolesJob.perform_now({})
      }.to change { Role.count }.by(role_params.length)
    end
  end
end

Version data entries

119 entries across 119 versions & 1 rubygems

Version Path
canvas_sync-0.18.5 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.18.3 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.18.2 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.18.1 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.18.0.beta2 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.18.0.beta1 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.17.43 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.17.42 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.17.41 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.17.40 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.17.39 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.17.38 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.17.37 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.17.36 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.17.35 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.17.34 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.17.33 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.17.32 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.17.31 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.17.30 spec/canvas_sync/jobs/sync_roles_job_spec.rb