Sha256: ac62faa7afcbe91ce53673729998a87b8a6b4305979220f6c55a92b76397909c

Contents?: true

Size: 613 Bytes

Versions: 8

Compression:

Stored size: 613 Bytes

Contents

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

describe YARD::Parser::CParser do
  before(:all) do
    file = File.join(File.dirname(__FILE__), 'examples', 'array.c.txt')
    @parser = Parser::CParser.new(IO.read(file)).parse
  end
  
  describe '#parse' do
    it "should parse Array class" do
      obj = YARD::Registry.at('Array')
      obj.should_not be_nil
      obj.docstring.should_not be_blank
    end
    
    it "should parse method" do
      obj = YARD::Registry.at('Array#initialize')
      obj.docstring.should_not be_blank
      obj.tags(:overload).size.should > 1
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
yard-0.5.6 spec/parser/c_parser_spec.rb
yard-0.5.5 spec/parser/c_parser_spec.rb
yard-0.5.4 spec/parser/c_parser_spec.rb
yard-0.5.3 spec/parser/c_parser_spec.rb
yard-0.5.2 spec/parser/c_parser_spec.rb
yard-0.5.1p1 spec/parser/c_parser_spec.rb
yard-0.5.1 spec/parser/c_parser_spec.rb
yard-0.5.0 spec/parser/c_parser_spec.rb