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.22.1 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.22.0 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.22.0.beta8 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.22.0.beta7 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.22.0.beta6 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.22.0.beta5 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.22.0.beta4 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.22.0.beta3 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.22.0.beta2 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.22.0.beta1 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.21.1 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.21.1.beta1 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.21.0 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.21.0.beta5 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.21.0.beta4 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.21.0.beta3 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.21.0.beta2 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.21.0.beta1 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.20.5 spec/canvas_sync/jobs/sync_roles_job_spec.rb
canvas_sync-0.20.4 spec/canvas_sync/jobs/sync_roles_job_spec.rb