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
7eab380e
Unverified
Commit
7eab380e
authored
10 months ago
by
Sébastien Gaya
Browse files
Options
Downloads
Patches
Plain Diff
fix tests
parent
9cf701f8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/jobs/application_job.rb
+1
-1
1 addition, 1 deletion
app/jobs/application_job.rb
test/models/communication/website/dependency_test.rb
+3
-3
3 additions, 3 deletions
test/models/communication/website/dependency_test.rb
with
4 additions
and
4 deletions
app/jobs/application_job.rb
+
1
−
1
View file @
7eab380e
class
ApplicationJob
<
ActiveJob
::
Base
class
ApplicationJob
<
ActiveJob
::
Base
retry_on
StandardError
,
wait: :
exponent
ially_longer
,
attempts:
Float
::
INFINITY
retry_on
StandardError
,
wait: :
polynom
ially_longer
,
attempts:
Float
::
INFINITY
# https://github.com/bensheldon/good_job?tab=readme-ov-file#labelled-jobs
# https://github.com/bensheldon/good_job?tab=readme-ov-file#labelled-jobs
include
GoodJob
::
ActiveJobExtensions
::
Labels
include
GoodJob
::
ActiveJobExtensions
::
Labels
...
...
This diff is collapsed.
Click to expand it.
test/models/communication/website/dependency_test.rb
+
3
−
3
View file @
7eab380e
...
@@ -5,13 +5,13 @@ class Communication::Website::DependencyTest < ActiveSupport::TestCase
...
@@ -5,13 +5,13 @@ class Communication::Website::DependencyTest < ActiveSupport::TestCase
include
ActiveJob
::
TestHelper
include
ActiveJob
::
TestHelper
def
test_page_dependencies
def
test_page_dependencies
#
Rien : 0 dépendances
#
Par défaut, 1 dépendance (la configuration CSP du site)
page
=
communication_website_pages
(
:page_with_no_dependency
)
page
=
communication_website_pages
(
:page_with_no_dependency
)
assert_equal
1
,
page
.
recursive_dependencies
.
count
assert_equal
1
,
page
.
recursive_dependencies
.
count
# On ajoute un block "Chapitre" :
7
dépendance
s
(le
s 6 composants du chapitre + le block lui même
)
# On ajoute un block "Chapitre" :
+1
dépendance (le
block
)
page
.
blocks
.
create
(
position:
1
,
published:
true
,
template_kind: :chapter
)
page
.
blocks
.
create
(
position:
1
,
published:
true
,
template_kind: :chapter
)
assert_equal
8
,
page
.
recursive_dependencies
.
count
assert_equal
2
,
page
.
recursive_dependencies
.
count
end
end
def
test_change_block_dependencies
def
test_change_block_dependencies
...
...
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