Sha256: 28dff16fc9276382a4767bbc45e9c7f5217744da51e78c223640403a61d3af15
Contents?: true
Size: 1022 Bytes
Versions: 68
Compression:
Stored size: 1022 Bytes
Contents
require File.dirname(__FILE__) + '/spec_helper' describe YARD::Templates::Engine.template(:default, :docstring) do before do Registry.clear YARD.parse_string <<-'eof' private # Comments # @abstract override this class # @author Test # @version 1.0 # @see A # @see http://example.com Example class A < B # HI def method_missing(*args) end # @deprecated def a; end # constructor method! def initialize(test) end end class C < A; end class D # @private def initialize; end end eof end it "should render html format correctly" do html_equals(Registry.at('A').format(html_options), :class001) end it "should render text format correctly" do text_equals(Registry.at('A').format, :class001) end it "should hide private constructors" do html_equals(Registry.at('D').format(html_options(:verifier => Verifier.new("!@private"))), :class002) end end
Version data entries
68 entries across 52 versions & 7 rubygems