Sha256: e8de4806bc4a5f9d15da4abf162df67def968a516c7e730deb07d6fca93b4dd4

Contents?: true

Size: 819 Bytes

Versions: 6

Compression:

Stored size: 819 Bytes

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
    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
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
yard-0.5.3 spec/templates/class_spec.rb
yard-0.5.2 spec/templates/class_spec.rb
yard-0.5.1p1 spec/templates/class_spec.rb
yard-0.5.1 spec/templates/class_spec.rb
yard-0.5.0 spec/templates/class_spec.rb
yard-0.4.0 spec/templates/class_spec.rb