Sha256: 2993ea79192e93b05f0930c9312561920f3ecbe6746cd660d0e451cba91e5d7c

Contents?: true

Size: 654 Bytes

Versions: 5

Compression:

Stored size: 654 Bytes

Contents

require 'spec_helper'
module Quickl
  describe "Command::subcommands /" do
    
    it "should return installed commands in an array" do
      MiniClient.subcommands.should eq([ 
        MiniClient::Help, 
        MiniClient::Say,
        MiniClient::Requester,
      ])
      MiniClient::Say.subcommands.should eq([ 
        MiniClient::Say::Hello,
        MiniClient::Say::Goodbye,
        MiniClient::Say::Args
      ])
    end
    
    it "should take care of the command_parent= in command builder" do
      MiniClient::Requester.subcommands.should eq([
        MiniClient::Factored
      ])
    end

  end # Command::subcommand
end # module Quickl

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
quickl-0.4.3 spec/command/test_subcommands.rb
quickl-0.4.2 spec/command/test_subcommands.rb
quickl-0.4.1 spec/command/test_subcommands.rb
quickl-0.4.0 spec/command/test_subcommands.rb
quickl-0.3.0 spec/command/test_subcommands.rb