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