Sha256: 4110b540dbec520a15c943bef55a13b1c0382663171d2e1e50fd1245237bc388
Contents?: true
Size: 448 Bytes
Versions: 8
Compression:
Stored size: 448 Bytes
Contents
require File.dirname(__FILE__) + '/spec_helper' describe YARD::Handlers::C::StructHandler do after { Registry.clear } it "handles Struct class definitions" do parse_init <<-eof rb_cRange = rb_struct_define_without_accessor( "Range", rb_cFoo, range_alloc, "begin", "end", "excl", NULL); eof expect(Registry.at('Range').type).to eq :class expect(Registry.at('Range').superclass).to eq P(:Foo) end end
Version data entries
8 entries across 7 versions & 2 rubygems