diff options
author | Stan Hu <stanhu@gmail.com> | 2017-05-26 15:55:06 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2017-05-26 15:55:06 -0700 |
commit | 564aa0515d84a66b312b0b68a301845118915fa7 (patch) | |
tree | 4d686a327885d8bd1e2e4d898f8dad51da80a145 | |
parent | e76a30c74bda205e79cd9ac738079428f1a6c436 (diff) | |
download | gitlab-ce-564aa0515d84a66b312b0b68a301845118915fa7.tar.gz |
Update spec to match latest EE changes
-rw-r--r-- | spec/models/project_spec.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb index 2075d7199a1..36575acf671 100644 --- a/spec/models/project_spec.rb +++ b/spec/models/project_spec.rb @@ -1436,9 +1436,14 @@ describe Project, models: true do let(:mirror) { false } before do - allow_any_instance_of(Gitlab::Shell).to receive(:import_repository).with(project.repository_storage_path, project.path_with_namespace, project.import_url).and_return(true) + allow_any_instance_of(Gitlab::Shell).to receive(:import_repository) + .with(project.repository_storage_path, project.path_with_namespace, project.import_url) + .and_return(true) + allow(project).to receive(:repository_exists?).and_return(true) - allow_any_instance_of(Repository).to receive(:build_cache).and_return(true) + + expect_any_instance_of(Repository).to receive(:after_import) + .and_call_original end it 'imports a project' do |