mirror of
https://github.com/rickbarrette/simple-aircraft-manager-rails.git
synced 2026-11-17 15:50:36 -05:00
Procedures: hosting and additional procedures render as Markdown (paragraphs, bold)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f2e4fd0beb
commit
90e68711a0
3 files changed
+14
-4
No files matched your search
@@ -28,6 +28,12 @@ class RecordkeepingProceduresTest < ActionDispatch::IntegrationTest
|
||||
assert_response :success
|
||||
assert_includes response.body, "Jane Pilot"
|
||||
assert_includes response.body, "Self-hosted server behind a firewall."
|
||||
RecordkeepingPolicy.current.update!(hosting_description: "First paragraph.\n\nSecond paragraph.", additional_procedures: "**Who makes entries.** The owner.\n\n**Retention.** Kept.")
|
||||
get draft_admin_procedures_path
|
||||
assert_select ".markdown p", text: "Second paragraph."
|
||||
assert_select ".markdown strong", text: "Retention."
|
||||
assert_no_match(/\*\*Retention/, response.body)
|
||||
fill_policy
|
||||
post adopt_admin_procedures_path, params: { summary: "Initial issue" }
|
||||
r1 = ProceduresRevision.current
|
||||
assert_equal 1, r1.number
|
||||
|
||||
Reference in new issue
Block a user