Skip to content

Commit

Permalink
Merge pull request #1307 from alphagov/update-technical-fault-options
Browse files Browse the repository at this point in the history
Update technical fault options as per March 2024 review
  • Loading branch information
ChrisBAshton authored Mar 19, 2024
2 parents 932e83a + 059e9d9 commit f6eee81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/models/support/requests/technical_fault_report.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,14 @@ class TechnicalFaultReport < Request
"content_tagger" => "Content Tagger",
"datagovuk" => "data.gov.uk",
"email_alerts" => "Email alerts",
"feedback_explorer" => "Feedback explorer",
"gov_uk_content" => "GOV.UK: content",
"imminence" => "Imminence",
"local_links_manager" => "Local Links Manager",
"mainstream_publisher" => "Mainstream Publisher",
"manuals_publisher" => "Manuals Publisher",
"maslow" => "Maslow",
"search" => "Search",
"service_manual_publisher" => "Service Manual Publisher",
"short_url_manager" => "Short URL Manager",
"signon" => "Signon",
Expand All @@ -42,7 +44,7 @@ class TechnicalFaultReport < Request
"transition" => "Transition",
"travel_advice_publisher" => "Travel Advice Publisher",
"whitehall" => "Whitehall",
"do_not_know" => "Do not know",
"do_not_know" => "Other / do not know",
}.freeze

validates :fault_context, :fault_specifics, :actions_leading_to_problem, :what_happened, :what_should_have_happened, presence: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module Requests
describe "#formatted_fault_context" do
it "returns the human readable name for the chosen context" do
report = described_class.new(fault_context: "do_not_know")
expect(report.formatted_fault_context).to eq "Do not know"
expect(report.formatted_fault_context).to eq "Other / do not know"
end
end

Expand Down

0 comments on commit f6eee81

Please sign in to comment.