Sha256: 7fd562fab094b5e02e4711759bcad068798b645ff1bf260d08f77ce8ff27d440

Contents?: true

Size: 697 Bytes

Versions: 1

Compression:

Stored size: 697 Bytes

Contents

require File.expand_path('../../spec_helper', __FILE__)
module Quickl
  describe "Command::run /" do
    
    it "when invoked on a terminal command" do
      MiniClient::Say::Hello.run.should == :hello
      MiniClient::Say::Goodbye.run.should == :goodbye
    end

    it "when invoked on a delegate command" do
      MiniClient.run(["help"]).should == :help
      MiniClient::Say.run(["hello"]).should == :hello
      MiniClient::Say.run(["goodbye"]).should == :goodbye
    end

    it "when invoked on qualified command names" do
      MiniClient.run(["say:hello"]).should == :hello
      MiniClient.run(["say:goodbye"]).should == :goodbye
    end

  end # Command::command
end # module Quickl

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
quickl-0.1.1 test/command/run.spec