Add search command

This commit is contained in:
Jorge Manrubia
2025-06-25 07:48:02 +02:00
parent 1ce8d8bff0
commit c319c49345
5 changed files with 30 additions and 13 deletions
+11
View File
@@ -0,0 +1,11 @@
require "test_helper"
class Command::SearchTest < ActionDispatch::IntegrationTest
include CommandTestHelper
test "redirect to the user perma" do
result = execute_command "/search something"
assert_equal search_path(q: "something"), result.url
end
end