Add more tests and fix failing ones

This commit is contained in:
Jorge Manrubia
2025-07-03 12:46:36 +02:00
parent 98e568482a
commit ca4628b457
34 changed files with 217406 additions and 13 deletions
+2 -3
View File
@@ -14,10 +14,9 @@ class Command::Ai::ParserTest < ActionDispatch::IntegrationTest
end
test "resolve filter string params as ids" do
result = parse_command "cards assigned to kevin, tagged with #web, in the collection writebook"
assert_equal 1, result.commands.size
command = parse_command "cards assigned to kevin, tagged with #web, in the collection writebook"
url = result.commands.first.url
url = command.url
query_string = URI.parse(url).query
params = Rack::Utils.parse_nested_query(query_string).with_indifferent_access