diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-07 06:11:02 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-07 06:11:02 +0300 |
commit | 66664611361dcfcbaf99cd7c6906b99bcb16becd (patch) | |
tree | 0b0c6b2266d5e6ea24e996cf7f5cf06ad523d9df /spec/models/repository_spec.rb | |
parent | 7e89568aa1b1c531aa34860fbd9e77d9e988b9b2 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models/repository_spec.rb')
-rw-r--r-- | spec/models/repository_spec.rb | 54 |
1 files changed, 28 insertions, 26 deletions
diff --git a/spec/models/repository_spec.rb b/spec/models/repository_spec.rb index 01e5c3d04db..202208a0d83 100644 --- a/spec/models/repository_spec.rb +++ b/spec/models/repository_spec.rb @@ -2224,32 +2224,34 @@ RSpec.describe Repository do describe '#after_change_head' do it 'flushes the method caches' do - expect(repository).to receive(:expire_method_caches).with([ - :size, - :commit_count, - :readme_path, - :contribution_guide, - :changelog, - :license_blob, - :license_licensee, - :license_gitaly, - :gitignore, - :gitlab_ci_yml, - :branch_names, - :tag_names, - :branch_count, - :tag_count, - :avatar, - :exists?, - :root_ref, - :merged_branch_names, - :has_visible_content?, - :issue_template_names_hash, - :merge_request_template_names_hash, - :user_defined_metrics_dashboard_paths, - :xcode_project?, - :has_ambiguous_refs? - ]) + expect(repository).to receive(:expire_method_caches).with( + [ + :size, + :commit_count, + :readme_path, + :contribution_guide, + :changelog, + :license_blob, + :license_licensee, + :license_gitaly, + :gitignore, + :gitlab_ci_yml, + :branch_names, + :tag_names, + :branch_count, + :tag_count, + :avatar, + :exists?, + :root_ref, + :merged_branch_names, + :has_visible_content?, + :issue_template_names_hash, + :merge_request_template_names_hash, + :user_defined_metrics_dashboard_paths, + :xcode_project?, + :has_ambiguous_refs? + ] + ) repository.after_change_head end |