Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/repository_spec.rb')
-rw-r--r--spec/models/repository_spec.rb54
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