Sha256: 63ea86ea614f25e9bdb8b333350715e9df403534a06ea945dedccf53734aa504

Contents?: true

Size: 448 Bytes

Versions: 10

Compression:

Stored size: 448 Bytes

Contents

require File.join(File.dirname(__FILE__), 'test_helper')

describe "Command" do
  describe ".find" do
    before do
      reset_boson
      @top_level_command = create_command(:name=>'blah', :lib=>'bling')
    end

    it 'finds correct command when a subcommand of the same name exists' do
      Command.find('blah').should == @top_level_command
    end

    it 'finds nothing given nil' do
      Command.find(nil).should == nil
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
boson-1.3.0 test/command_test.rb
boson-1.2.4 test/command_test.rb
boson-1.2.3 test/command_test.rb
boson-1.2.2 test/command_test.rb
boson-1.2.1 test/command_test.rb
boson-1.2.0 test/command_test.rb
boson-1.1.1 test/command_test.rb
boson-1.1.0 test/command_test.rb
boson-1.0.1 test/command_test.rb
boson-1.0.0 test/command_test.rb