Sha256: 8d389db71774fad01785ee6345eabe07f5392a10bc8dedf5faeb2f2857ef7b24
Contents?: true
Size: 524 Bytes
Versions: 3
Compression:
Stored size: 524 Bytes
Contents
require File.join(File.dirname(__FILE__), '..', 'spec_helper') describe YARD::Parser, "tag handling" do before { parse_file :tag_handler_001, __FILE__ } it "should know the list of all available tags" do P("Foo#foo").tags.should include(P("Foo#foo").tag(:api)) end it "should know the text of tags on a method" do P("Foo#foo").tag(:api).text.should == "public" end it "should return true when asked whether a tag exists" do P("Foo#foo").has_tag?(:api).should == true end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
deg-yard-0.8.7.4 | spec/parser/tag_parsing_spec.rb |
deg-yard-0.8.7.3 | spec/parser/tag_parsing_spec.rb |
deg-yard-0.8.7.1 | spec/parser/tag_parsing_spec.rb |