Sha256: 7a3a00e0fd2417626c01adf4b65f1cac909a0039e5550fb9efb55c6ffa19cd07

Contents?: true

Size: 507 Bytes

Versions: 69

Compression:

Stored size: 507 Bytes

Contents

describe Ufo::CLI do
  describe "ufo completion" do
    commands = {
      "ship" => "service",
      "ship service" => "--task",
      "docker" =>  "build",
      "docker build" => "--push",
      "docker clean" => "image_name",
      "init" => "--image",
    }
    commands.each do |command, expected_word|
      it "#{command}" do
        out = execute("exe/ufo completion #{command}")
        expect(out).to include(expected_word) # only checking for one word for simplicity
      end
    end
  end
end

Version data entries

69 entries across 69 versions & 1 rubygems

Version Path
ufo-5.0.7 spec/lib/completion_spec.rb
ufo-5.0.6 spec/lib/completion_spec.rb
ufo-5.0.5 spec/lib/completion_spec.rb
ufo-5.0.4 spec/lib/completion_spec.rb
ufo-5.0.3 spec/lib/completion_spec.rb
ufo-5.0.2 spec/lib/completion_spec.rb
ufo-5.0.1 spec/lib/completion_spec.rb
ufo-5.0.0 spec/lib/completion_spec.rb
ufo-4.6.3 spec/lib/completion_spec.rb
ufo-4.6.2 spec/lib/completion_spec.rb
ufo-4.6.1 spec/lib/completion_spec.rb
ufo-4.6.0 spec/lib/completion_spec.rb
ufo-4.5.11 spec/lib/completion_spec.rb
ufo-4.5.10 spec/lib/completion_spec.rb
ufo-4.5.9 spec/lib/completion_spec.rb
ufo-4.5.8 spec/lib/completion_spec.rb
ufo-4.5.7 spec/lib/completion_spec.rb
ufo-4.5.6 spec/lib/completion_spec.rb
ufo-4.5.5 spec/lib/completion_spec.rb
ufo-4.5.4 spec/lib/completion_spec.rb