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