Sha256: 53530562d49600f62e904f43c805488eab542735f6c5bd2ea20f04665300eef6

Contents?: true

Size: 684 Bytes

Versions: 20

Compression:

Stored size: 684 Bytes

Contents

require "spec_helper"

describe Invoker::CLI do
  describe "default start command" do
    it "should use default if no other command specified" do
      Invoker::CLI.any_instance.expects(:start).with("dummy")
      Invoker::CLI.start(["dummy"])
    end

    it "should use proper command if it exists" do
      Invoker::CLI.any_instance.expects(:list)
      Invoker::CLI.start(["list"])
    end

    it "should list version" do
      Invoker::CLI.any_instance.expects(:version)
      Invoker::CLI.start(["-v"])
    end
  end

  describe "stop command" do
    it "should stop the daemon" do
      Invoker.daemon.expects(:stop).once
      Invoker::CLI.start(["stop"])
    end
  end
end

Version data entries

20 entries across 20 versions & 3 rubygems

Version Path
itrg-invoker-1.6.1 spec/invoker/cli_spec.rb
itrg-invoker-1.6.0 spec/invoker/cli_spec.rb
invoker-1.5.8 spec/invoker/cli_spec.rb
invoker-1.5.7 spec/invoker/cli_spec.rb
invoker-1.5.6 spec/invoker/cli_spec.rb
invoker-1.5.5 spec/invoker/cli_spec.rb
invoker-1.5.4 spec/invoker/cli_spec.rb
invoker-1.5.3 spec/invoker/cli_spec.rb
meepo-1.5.2 spec/invoker/cli_spec.rb
invoker-1.5.1 spec/invoker/cli_spec.rb
invoker-1.4.1 spec/invoker/cli_spec.rb
invoker-1.4.0 spec/invoker/cli_spec.rb
invoker-1.3.2 spec/invoker/cli_spec.rb
invoker-1.3.1 spec/invoker/cli_spec.rb
invoker-1.3.0 spec/invoker/cli_spec.rb
invoker-1.2.0 spec/invoker/cli_spec.rb
invoker-1.2.0.pre2 spec/invoker/cli_spec.rb
invoker-1.2.0.pre1 spec/invoker/cli_spec.rb
invoker-1.2.0.pre spec/invoker/cli_spec.rb
invoker-1.1.0 spec/invoker/cli_spec.rb