Migrate wrapper test to Cucumber.

This commit is contained in:
Raphael Reitzig 2020-05-26 02:49:06 +02:00
parent 479fa1e541
commit 56bc601b17
9 changed files with 144 additions and 94 deletions

View file

@ -4,10 +4,9 @@ require 'open3'
module CompletionHelper
def complete(cmd)
completions = run_fish_command("complete -C\"sdk #{cmd}\"")
completions = run_fish_command("complete -C\"sdk #{cmd}\"")[:stdout]
completions.split("\n") \
.map { |line| line.split(/\s+/)[0].strip }
completions.map { |line| line.split(/\s+/)[0].strip }
# TODO: Why do we get duplicates in the Docker container?
end
end