Sha256: 443e09745f9c073ceb915c3d052ba01d266064e7088d1887d6bb2251f72b8b30

Contents?: true

Size: 499 Bytes

Versions: 8

Compression:

Stored size: 499 Bytes

Contents

require File.join(File.dirname(__FILE__), '..', 'spec_helper')

describe YARD::Parser, "tag handling" do
  before { parse_file :tag_handler_001, __FILE__ }

  it "knows the list of all available tags" do
    expect(P("Foo#foo").tags).to include(P("Foo#foo").tag(:api))
  end

  it "knows the text of tags on a method" do
    expect(P("Foo#foo").tag(:api).text).to eq "public"
  end

  it "returns true when asked whether a tag exists" do
    expect(P("Foo#foo").has_tag?(:api)).to be true
  end
end

Version data entries

8 entries across 7 versions & 2 rubygems

Version Path
abaci-0.3.0 vendor/bundle/gems/yard-0.9.2/spec/parser/tag_parsing_spec.rb
abaci-0.3.0 vendor/bundle/gems/yard-0.9.1/spec/parser/tag_parsing_spec.rb
yard-0.9.5 spec/parser/tag_parsing_spec.rb
yard-0.9.4 spec/parser/tag_parsing_spec.rb
yard-0.9.3 spec/parser/tag_parsing_spec.rb
yard-0.9.2 spec/parser/tag_parsing_spec.rb
yard-0.9.1 spec/parser/tag_parsing_spec.rb
yard-0.9.0 spec/parser/tag_parsing_spec.rb