Commit 0f369d14 authored by Rémy Coutable's avatar Rémy Coutable

[CE] Reduce diff with EE in spec/models/project_spec.rb

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 590129a8
......@@ -2143,6 +2143,15 @@ describe Project do
expect(project.add_import_job).to eq(import_jid)
end
context 'without repository' do
it 'schedules RepositoryImportWorker' do
project = create(:project, import_url: generate(:url))
expect(RepositoryImportWorker).to receive(:perform_async).with(project.id).and_return(import_jid)
expect(project.add_import_job).to eq(import_jid)
end
end
end
context 'not forked' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment