diff --git a/app/presenters/publishing_api/speech_presenter.rb b/app/presenters/publishing_api/speech_presenter.rb index 2e3c46ed2e7..6631bc323a7 100644 --- a/app/presenters/publishing_api/speech_presenter.rb +++ b/app/presenters/publishing_api/speech_presenter.rb @@ -23,7 +23,7 @@ def content details:, document_type:, public_updated_at: item.public_timestamp || item.updated_at, - rendering_app: Whitehall::RenderingApp::GOVERNMENT_FRONTEND, + rendering_app: Whitehall::RenderingApp::FRONTEND, schema_name: "speech", auth_bypass_ids: [item.auth_bypass_id], ) diff --git a/test/unit/app/presenters/publishing_api/speech_presenter_test.rb b/test/unit/app/presenters/publishing_api/speech_presenter_test.rb index 368e3f7a948..47e9bcd75ff 100644 --- a/test/unit/app/presenters/publishing_api/speech_presenter_test.rb +++ b/test/unit/app/presenters/publishing_api/speech_presenter_test.rb @@ -65,7 +65,7 @@ def iso8601_regex assert_equal("Speech title", presented.content[:title]) assert_equal("The description", presented.content[:description]) assert_equal(Whitehall::PublishingApp::WHITEHALL, presented.content[:publishing_app]) - assert_equal("government-frontend", presented.content[:rendering_app]) + assert_equal("frontend", presented.content[:rendering_app]) assert_equal([speech.auth_bypass_id], presented.content[:auth_bypass_ids]) details = presented.content[:details]