Sha256: eecf77f2ffd4b30df6e71d38fbf4a9e87e3d8152a4921f964063c8e9d8ef29be

Contents?: true

Size: 1.06 KB

Versions: 31

Compression:

Stored size: 1.06 KB

Contents

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

describe YARD::Templates::Engine.template(:default, :tags) do
  before { Registry.clear }
  
  describe 'all known tags' do
    before do
      YARD.parse_string <<-'eof'
        # Comments
        # @abstract override me
        # @param [Hash] opts the options
        # @option opts :key ('') hello
        # @option opts :key2 (X) hello
        # @return [String] the result
        # @raise [Exception] Exception class
        # @deprecated for great justice
        # @see A
        # @see http://url.com
        # @see http://url.com Example
        # @author Name
        # @since 1.0
        # @version 1.0
        # @yield a block
        # @yieldparam [String] a a value
        # @yieldreturn [Hash] a hash
        # @example Wash your car
        #   car.wash
        # @example To kill a mockingbird
        #   a = String.new
        #   flip(a.reverse)
        def m(opts = {}) end
      eof
    end

    it "should render text format correctly" do
      text_equals(Registry.at('#m').format, :tag001)
    end
  end
end

Version data entries

31 entries across 31 versions & 3 rubygems

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