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