Sha256: 02a0e3ab0921f03f8e77f9253002bf0b6c419c88c064084bec6ac0fd5f54d2fd

Contents?: true

Size: 656 Bytes

Versions: 1

Compression:

Stored size: 656 Bytes

Contents

require "spec_helper"

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

1 entries across 1 versions & 1 rubygems

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