From 224b4ab14133141f9186be6b46189af114a5df17 Mon Sep 17 00:00:00 2001 From: Thomas Scherz Date: Wed, 15 May 2024 10:46:11 -0400 Subject: [PATCH] Adds simple_format to notes field. --- app/views/software_records/_general.html.erb | 2 +- spec/views/software_records/show.html.erb_spec.rb | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/software_records/_general.html.erb b/app/views/software_records/_general.html.erb index 681502dc..7d837537 100644 --- a/app/views/software_records/_general.html.erb +++ b/app/views/software_records/_general.html.erb @@ -151,7 +151,7 @@ <% if !@software_record.notes.nil? && !@software_record.notes.to_s.empty? %>
Notes
- +
<% end %> diff --git a/spec/views/software_records/show.html.erb_spec.rb b/spec/views/software_records/show.html.erb_spec.rb index f34e3b34..668992e6 100644 --- a/spec/views/software_records/show.html.erb_spec.rb +++ b/spec/views/software_records/show.html.erb_spec.rb @@ -66,6 +66,7 @@ dev_support_servers: 'dev.example.com', date_cert_expires: '2020-01-01', monitor_certificates: 'Yes', + notes: "Line one\nLine two", themes: true, modules: true )) @@ -79,6 +80,7 @@ expect(rendered).to match(/MyText/) expect(rendered).to match(/1/) expect(rendered).to match(/DUO/) + expect(rendered).to match(/Line one\n
Line two/) end it 'renders change management attributes in

' do