Sha256: 57e7b74807053c46518f681058a0f5c2ac08b0900a8975aa24340655aaae95f0

Contents?: true

Size: 484 Bytes

Versions: 5

Compression:

Stored size: 484 Bytes

Contents

require 'spec_helper'
module Quickl
  describe "Command::subcommand_by_name /" do
    
    specify "when called on single command names" do
      MiniClient.subcommand_by_name("help").should eq(MiniClient::Help)
      MiniClient.subcommand_by_name("noway").should be_nil
    end
    
    specify "when called on complex command names" do
      MiniClient.subcommand_by_name("say:hello").should eq(MiniClient::Say::Hello)
    end
    
  end # Command::command_name
end # module Quickl

Version data entries

5 entries across 5 versions & 1 rubygems

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