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