Refine prompt

This commit is contained in:
Jorge Manrubia
2025-07-03 12:54:24 +02:00
parent ca4628b457
commit 75387891d5
25 changed files with 64885 additions and 69 deletions
+14
View File
@@ -8,4 +8,18 @@ class Command::ParserTest < ActionDispatch::IntegrationTest
result = parse_command "assign @kevin"
assert_equal "assign @kevin", result.line
end
test "supports expressions in plain text" do
command = parse_command "/assign @kevin"
assert command.is_a?(Command::Assign)
assert_equal [users(:kevin)], command.assignees
end
test "supports expressions in rich text" do
command = parse_command <<~HTML
<p>/assign #{ActionText::Attachment.from_attachable(users(:kevin)).to_html}</p>
HTML
assert command.is_a?(Command::Assign)
assert_equal [users(:kevin)], command.assignees
end
end