diff --git a/client/src/main/scala/com.gu.contentapi.client/utils/CapiModelEnrichment.scala b/client/src/main/scala/com.gu.contentapi.client/utils/CapiModelEnrichment.scala index b2fbee4..dc8000a 100644 --- a/client/src/main/scala/com.gu.contentapi.client/utils/CapiModelEnrichment.scala +++ b/client/src/main/scala/com.gu.contentapi.client/utils/CapiModelEnrichment.scala @@ -186,6 +186,7 @@ object CapiModelEnrichment { (tagExistsWithId("tone/comment")(content) && isPillar("News")(content)) || (tagExistsWithId("tone/letters")(content) && isPillar("News")(content)) || isPillar("Opinion")(content) + val isCulture: ContentFilter = content => isPillar("Arts")(content) val predicates: List[(ContentFilter, Theme)] = List( isSpecialReport -> SpecialReportTheme, @@ -193,7 +194,7 @@ object CapiModelEnrichment { tagExistsWithId("tone/advertisement-features") -> Labs, isOpinion -> OpinionPillar, isPillar("Sport") -> SportPillar, - isPillar("Culture") -> CulturePillar, + isCulture -> CulturePillar, isPillar("Lifestyle") -> LifestylePillar ) diff --git a/client/src/test/scala/com.gu.contentapi.client/model/utils/CapiModelEnrichmentTest.scala b/client/src/test/scala/com.gu.contentapi.client/model/utils/CapiModelEnrichmentTest.scala index f7664d1..c4eed9e 100644 --- a/client/src/test/scala/com.gu.contentapi.client/model/utils/CapiModelEnrichmentTest.scala +++ b/client/src/test/scala/com.gu.contentapi.client/model/utils/CapiModelEnrichmentTest.scala @@ -513,9 +513,9 @@ class CapiModelEnrichmentFormatTest extends AnyFlatSpec with MockitoSugar with M f.content.theme shouldEqual SportPillar } - it should "return a theme of 'CulturePillar' when has a pillarName of 'Culture'" in { + it should "return a theme of 'CulturePillar' when has a pillarName of 'Arts'" in { val f = fixture - when(f.content.pillarName) thenReturn Some("Culture") + when(f.content.pillarName) thenReturn Some("Arts") f.content.theme shouldEqual CulturePillar }