Skip to content

Commit

Permalink
Change rendering app to Frontend in Speech model
Browse files Browse the repository at this point in the history
  • Loading branch information
sairamya93 committed Mar 5, 2025
1 parent b9e1534 commit ef2a4c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/models/speech.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def delivered_by_minister?
end

def rendering_app
Whitehall::RenderingApp::GOVERNMENT_FRONTEND
Whitehall::RenderingApp::FRONTEND
end

def base_path
Expand Down
4 changes: 2 additions & 2 deletions test/unit/app/models/speech_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ class SpeechTest < ActiveSupport::TestCase
assert_equal current_government, speech.government
end

test "Speech is rendered by government-frontend" do
assert_equal Speech.new.rendering_app, Whitehall::RenderingApp::GOVERNMENT_FRONTEND
test "Speech is rendered by frontend" do
assert_equal Speech.new.rendering_app, Whitehall::RenderingApp::FRONTEND
end
end

0 comments on commit ef2a4c5

Please sign in to comment.