Sha256: eee5393750093a7ba07ee6761abbb68be4848b4c6a85e640b4d4af67ae9ba93d
Contents?: true
Size: 751 Bytes
Versions: 13
Compression:
Stored size: 751 Bytes
Contents
require File.dirname(__FILE__) + '/spec_helper' describe "YARD::Handlers::Ruby::#{RUBY18 ? "Legacy::" : ""}ModuleHandler" do before(:all) { parse_file :module_handler_001, __FILE__ } it "should parse a module block" do Registry.at(:ModName).should_not == nil Registry.at("ModName::OtherModName").should_not == nil end it "should attach docstring" do Registry.at("ModName::OtherModName").docstring.should == "Docstring" end it "should handle any formatting" do Registry.at(:StressTest).should_not == nil end it "should handle complex module names" do Registry.at("A::B").should_not == nil end it "should handle modules in the form ::ModName" do Registry.at("Kernel").should_not be_nil end end
Version data entries
13 entries across 13 versions & 1 rubygems