git_spec.rb revision 20d7141b5fbf4ea48eeadae9d6a9a88465ac6b8b
require 'spec_helper'
describe Repository do
let(:repository) { create :repository_with_remote }
context 'when ontohub clones a remote repository' do
it 'should create a bulk job on a queue' do
expect { repository.remote_send('clone') }.
to change(OntologyBatchParseWorker.jobs, :size)
end
it 'should run the ontology import on the cloned repository', process_jobs_synchronously: true do
expect { repository.remote_send('clone') }.
not_to raise_error
end
end
end