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