Sha256: dd1cfaef3d4d27addf320288aaae95c1be8e94a661ff461fcaefefeb6152f9cf

Contents?: true

Size: 650 Bytes

Versions: 4

Compression:

Stored size: 650 Bytes

Contents

require File.join(File.dirname(__FILE__), '..', 'spec_helper')
require 'continuation' unless RUBY18

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

4 entries across 4 versions & 1 rubygems

Version Path
yard-0.6.1 spec/parser/c_parser_spec.rb
yard-0.6.0 spec/parser/c_parser_spec.rb
yard-0.5.8 spec/parser/c_parser_spec.rb
yard-0.5.7 spec/parser/c_parser_spec.rb