diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-12 00:09:34 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-12 00:09:34 +0000 |
commit | 5781a4966047232d4725f9ee4769c4bd5aed9b26 (patch) | |
tree | 0ef2b81a40931ec51f8fdd5284ed9e47cf42a923 /spec/models/repository_spec.rb | |
parent | 4d48b3cfcd74bcca0f0f305746f74cf7224dd78b (diff) | |
download | gitlab-ce-5781a4966047232d4725f9ee4769c4bd5aed9b26.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models/repository_spec.rb')
-rw-r--r-- | spec/models/repository_spec.rb | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/spec/models/repository_spec.rb b/spec/models/repository_spec.rb index 58f17a3661f..ca04bd7a28a 100644 --- a/spec/models/repository_spec.rb +++ b/spec/models/repository_spec.rb @@ -1929,32 +1929,6 @@ describe Repository do end end - describe '#after_import' do - subject { repository.after_import } - - it 'flushes and builds the cache' do - expect(repository).to receive(:expire_content_cache) - - subject - end - - it 'calls DetectRepositoryLanguagesWorker' do - expect(DetectRepositoryLanguagesWorker).to receive(:perform_async) - - subject - end - - context 'with a wiki repository' do - let(:repository) { project.wiki.repository } - - it 'does not call DetectRepositoryLanguagesWorker' do - expect(DetectRepositoryLanguagesWorker).not_to receive(:perform_async) - - subject - end - end - end - describe '#after_push_commit' do it 'expires statistics caches' do expect(repository).to receive(:expire_statistics_caches) |