Skip to content

Commit

Permalink
Fix a failing spec caused by no template
Browse files Browse the repository at this point in the history
This one test was failing because of the extra context required to
render a block of content over a string. As the block behaviour is
already extensively covered elsewhere just switch this test over to use
arguments.
  • Loading branch information
peteryates committed Jun 11, 2023
1 parent 30be9cb commit b0f9d4e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
subject! do
render_inline(described_class.new(**kwargs)) do |cookie_banner|
cookie_banner.with_message(heading_text: custom_heading_text, role: custom_role, text: custom_message_text) do |message|
message.with_action { helper.govuk_button_link_to("/accept") { "Accept" } }
message.with_action { helper.govuk_button_link_to("Accept", "/accept") }
message.with_action { helper.govuk_link_to("View cookie policy", "/cookie-policy") }
end
end
Expand Down

0 comments on commit b0f9d4e

Please sign in to comment.