Sha256: 77f1bf3cf45ae9f5685a96b9c69429b2afced1836f2a9cbdb35669149bd9d5cb

Contents?: true

Size: 472 Bytes

Versions: 21

Compression:

Stored size: 472 Bytes

Contents

# frozen_string_literal: true

RSpec.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

21 entries across 20 versions & 4 rubygems

Version Path
yard-0.9.24 spec/parser/tag_parsing_spec.rb
yard-0.9.23 spec/parser/tag_parsing_spec.rb
yard-0.9.22 spec/parser/tag_parsing_spec.rb
yard-0.9.21 spec/parser/tag_parsing_spec.rb
yard-0.9.20 spec/parser/tag_parsing_spec.rb
yard-0.9.19 spec/parser/tag_parsing_spec.rb
yard-0.9.16 spec/parser/tag_parsing_spec.rb
yard-0.9.15 spec/parser/tag_parsing_spec.rb
yard-0.9.14 spec/parser/tag_parsing_spec.rb
yard-0.9.13 spec/parser/tag_parsing_spec.rb
yard-0.9.12 spec/parser/tag_parsing_spec.rb
yard-0.9.11 spec/parser/tag_parsing_spec.rb
yard-0.9.10 spec/parser/tag_parsing_spec.rb
yard-0.9.9 spec/parser/tag_parsing_spec.rb
etude_for_ruby-0.1.4 vendor/bundle/ruby/2.4.0/gems/yard-0.9.8/spec/parser/tag_parsing_spec.rb
etude_for_ruby-0.1.4 vendor/bundle/ruby/2.2.0/gems/yard-0.9.8/spec/parser/tag_parsing_spec.rb
mdg-1.0.1 vendor/bundle/ruby/2.3.0/gems/yard-0.9.8/spec/parser/tag_parsing_spec.rb
yard-0.9.8 spec/parser/tag_parsing_spec.rb
abaci-0.3.0 vendor/bundle/gems/yard-0.9.7/spec/parser/tag_parsing_spec.rb
yard-0.9.7 spec/parser/tag_parsing_spec.rb