[CE] Reduce diff with EE in spec/models/project_spec.rb
Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
parent
590129a892
commit
0f369d145b
1 changed files with 9 additions and 0 deletions
|
@ -2143,6 +2143,15 @@ describe Project do
|
||||||
|
|
||||||
expect(project.add_import_job).to eq(import_jid)
|
expect(project.add_import_job).to eq(import_jid)
|
||||||
end
|
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
|
end
|
||||||
|
|
||||||
context 'not forked' do
|
context 'not forked' do
|
||||||
|
|
Loading…
Reference in a new issue