spec/command/test_command_building.rb in quickl-0.3.0 vs spec/command/test_command_building.rb in quickl-0.4.0
- old
+ new
@@ -9,8 +9,13 @@
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
+
+ it "should support installing a specific doc extractor" do
+ MiniClient::Factored.documentation.should eq("Factored doc")
+ MiniClient::Factored.documentation(:upcase => true).should eq("FACTORED DOC")
+ end
end # Command::command_name
end # module Quickl