Sha256: c01d3731a20b8ff98a3e877caefdee2c4a7e23b51bd7a01cc30e8105e95b0f9d

Contents?: true

Size: 1.05 KB

Versions: 25

Compression:

Stored size: 1.05 KB

Contents

require File.dirname(__FILE__) + '/spec_helper'

describe YARD::Templates::Engine.template(:default, :docstring) do
  before do
    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(:format => :html, :no_highlight => true), :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(:format => :html, :no_highlight => true, :verifier => Verifier.new("!@private")), :class002)
  end
end

Version data entries

25 entries across 25 versions & 3 rubygems

Version Path
nutshell-crm-0.0.6.alpha vendor/bundle/gems/yard-0.7.4/spec/templates/class_spec.rb
nutshell-crm-0.0.5 vendor/bundle/gems/yard-0.7.4/spec/templates/class_spec.rb
nutshell-crm-0.0.4 vendor/bundle/gems/yard-0.7.4/spec/templates/class_spec.rb
nutshell-crm-0.0.3 vendor/bundle/gems/yard-0.7.4/spec/templates/class_spec.rb
nutshell-crm-0.0.2 vendor/bundle/gems/yard-0.7.4/spec/templates/class_spec.rb
yard-0.7.4 spec/templates/class_spec.rb
yard-0.7.3 spec/templates/class_spec.rb
vanity-1.7.1 vendor/ruby/1.9.1/gems/yard-0.7.2/spec/templates/class_spec.rb
yard-0.7.2 spec/templates/class_spec.rb
yard-0.7.1 spec/templates/class_spec.rb
yard-0.7.0 spec/templates/class_spec.rb
yard-0.6.8 spec/templates/class_spec.rb
yard-0.6.7 spec/templates/class_spec.rb
yard-0.6.6 spec/templates/class_spec.rb
yard-0.6.5 spec/templates/class_spec.rb
yard-0.6.4 spec/templates/class_spec.rb
yard-0.6.3 spec/templates/class_spec.rb
yard-0.6.2 spec/templates/class_spec.rb
yard-0.6.1 spec/templates/class_spec.rb
yard-0.6.0 spec/templates/class_spec.rb