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

Version Path
yard-0.5.8 spec/handlers/module_handler_spec.rb
yard-0.5.7 spec/handlers/module_handler_spec.rb
yard-0.5.6 spec/handlers/module_handler_spec.rb
yard-0.5.5 spec/handlers/module_handler_spec.rb
yard-0.5.4 spec/handlers/module_handler_spec.rb
yard-0.5.3 spec/handlers/module_handler_spec.rb
yard-0.5.2 spec/handlers/module_handler_spec.rb
yard-0.5.1p1 spec/handlers/module_handler_spec.rb
yard-0.5.1 spec/handlers/module_handler_spec.rb
yard-0.5.0 spec/handlers/module_handler_spec.rb
yard-0.4.0 spec/handlers/module_handler_spec.rb
yard-0.2.3.5 spec/handlers/module_handler_spec.rb
yard-0.2.3.4 spec/handlers/module_handler_spec.rb