Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def is_hugo_index?
end

def should_create_special_page?
website.about && website.about&.respond_to?(:education_diplomas)
website.has_education_diplomas?
end

def editable_width?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def is_hugo_index?
end

def should_create_special_page?
website.about && website.about&.respond_to?(:programs)
website.has_education_programs?
end

def editable_width?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def is_hugo_index?
end

def should_create_special_page?
website.about && website.about&.respond_to?(:education_schools)
website.has_education_schools?
end

def editable_width?
Expand Down
6 changes: 3 additions & 3 deletions test/models/communication/website/dependency_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ def test_change_website_dependencies
# - Les catégories d'actus liés aux formations, soit la catégorie racine et la catégorie de default_program, ainsi que leurs localisations (4)
# - Les catégories d'agenda liés aux formations, soit la catégorie racine et la catégorie de default_program, ainsi que leurs localisations (4)
# - Les catégories de pages liés aux formations, soit la catégorie racine et la catégorie de default_program, ainsi que leurs localisations (4)
# - Les pages "Teachers", "Administrators", "Researchers", "EducationDiplomas", "EducationPrograms", "AdministrationLocation" et leurs localisations (12)
# Donc un total de 6 + 4 + 4 + 4 + 12 = 30 dépendances
assert_equal 30, delta
# - Les pages "Teachers", "Administrators", "Researchers", "EducationDiplomas", "EducationPrograms", "EducationSchools", "AdministrationLocations" et leurs localisations (14)
# Donc un total de 6 + 4 + 4 + 4 + 14 = 32 dépendances
assert_equal 32, delta

clear_enqueued_jobs
end
Expand Down
Loading