Sha256: d77a1e6160bd4e7fbeb0217984ca3d6e3d13da897fe605fcf52496dd977e53a1

Contents?: true

Size: 594 Bytes

Versions: 2

Compression:

Stored size: 594 Bytes

Contents

require File.expand_path('../../spec_helper', __FILE__)
module Quickl
  describe "Command building /" do
    
    it "should execute callback methods" do
      MiniClient::Factored.run.should == :hello
    end
    
    it "should install hierarchy correctly when command_parent= is used" do
      MiniClient::Factored.super_command.should == MiniClient::Requester
      MiniClient::Requester.subcommands.should include(MiniClient::Factored)
      lambda{ MiniClient::Requester.new.has_command!("factored") }.should_not raise_error
    end
    
  end # Command::command_name
end # module Quickl

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
quickl-0.2.2 spec/command/command_building_spec.rb
quickl-0.2.1 spec/command/command_building_spec.rb