Update the Command classes to handle paths with account slugs

This commit is contained in:
Mike Dalessio
2025-06-30 22:35:35 -04:00
parent 3d39bdc9f3
commit b8368de002
8 changed files with 67 additions and 13 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ module CommandTestHelper
end
def parse_command(string, context_url: nil, user: users(:david))
context = Command::Parser::Context.new(user, url: context_url)
context = Command::Parser::Context.new(user, url: context_url, script_name: integration_session.default_url_options[:script_name])
parser = Command::Parser.new(context)
parser.parse(string).tap do |command|
command.user = user if command