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