Skip to content

Commit

Permalink
Change wording of permission update flash message
Browse files Browse the repository at this point in the history
Based on feedback from Etain.
  • Loading branch information
chrislo committed Nov 20, 2023
1 parent dd648dc commit a1eb5f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/helpers/account_applications_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def message_for_success(application_id)
list = tag.ul(class: "govuk-list govuk-list--bullet")
additional_permissions.map { |permission| list << tag.li(permission) }
else
paragraph = tag.p("You can access but have no additional permissions for #{application.name}.", class: "govuk-body")
paragraph = tag.p("You can access #{application.name} but you do not have any additional permissions.", class: "govuk-body")
list = nil
end

Expand Down
2 changes: 1 addition & 1 deletion test/helpers/account_applications_helper_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class AccountApplicationsHelperTest < ActionView::TestCase
end

should "indicate that the user has no additional permissions" do
assert_includes message_for_success(@application.id), "You can access but have no additional permissions for Whitehall."
assert_includes message_for_success(@application.id), "You can access Whitehall but you do not have any additional permissions."
end
end
end
Expand Down

0 comments on commit a1eb5f3

Please sign in to comment.