Sha256: 434b318f3d0e2f26aee7b518efe19ae255b84b050840847719a8d8105660825f

Contents?: true

Size: 633 Bytes

Versions: 2

Compression:

Stored size: 633 Bytes

Contents

describe <%= project_class_name %>::CLI do
  before(:all) do
    @args = "--from Tung"
  end

  describe "<%= project_name %>" do
    it "hello" do
      out = execute("exe/<%= project_name %> hello world #{@args}")
      expect(out).to include("from: Tung\nHello world")
    end

    it "completions" do
      out = execute("exe/<%= project_name %> completions")
      expect(out).to include("hello")

      out = execute("exe/<%= project_name %> completions hello")
      expect(out).to include("name")

      out = execute("exe/<%= project_name %> completions hello name")
      expect(out).to include("--from")
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cli-template-4.0.2 lib/templates/colon_namespaces/spec/lib/cli_spec.rb.tt
cli-template-4.0.1 lib/templates/colon_namespaces/spec/lib/cli_spec.rb.tt