Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
Admin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
osuny
Admin
Commits
796eac31
Unverified
Commit
796eac31
authored
1 year ago
by
Sébastien Gaya
Browse files
Options
Downloads
Patches
Plain Diff
doc
parent
5ae9695b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/models/communication/website/dependency_test.rb
+6
-1
6 additions, 1 deletion
test/models/communication/website/dependency_test.rb
with
6 additions
and
1 deletion
test/models/communication/website/dependency_test.rb
+
6
−
1
View file @
796eac31
...
...
@@ -51,7 +51,12 @@ class Communication::Website::DependencyTest < ActiveSupport::TestCase
website_with_github
.
update
(
about:
default_school
)
refute
(
destroy_obsolete_git_files_job
)
delta
=
website_with_github
.
recursive_dependencies
.
count
-
dependencies_before_count
assert_equal
12
,
delta
# En ajoutant l'école, on rajoute en dépendances :
# - L'école, et ses formations et diplômes en cascade (3)
# - Les catégories d'actus liés aux formations, soit la catégorie racine et la catégorie de default_program (2)
# - N'ayant pas été créés avant, le save du website va créer les 3 menus par défaut : primary, legal et social (3)
# Donc un total de 3 + 2 + 3 = 8 dépendances
assert_equal
8
,
delta
Delayed
::
Job
.
destroy_all
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment