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.17.14 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.17.13 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.17.12 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.17.10.beta2 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.17.10.beta1 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.17.8 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.17.8.beta4 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.17.8.beta3 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.17.8.beta2 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.17.8.beta1 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.17.7 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.17.7.beta1 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.17.6 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.17.6.beta1 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.17.5 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.17.5.beta2 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.17.5.beta1 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.17.4 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.17.3.beta3 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.17.3.beta2 spec/canvas_sync/jobs/sync_roles_job_spec.rb