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

Version Path
abaci-0.3.0 vendor/bundle/gems/yard-0.9.2/spec/handlers/c/struct_handler_spec.rb
abaci-0.3.0 vendor/bundle/gems/yard-0.9.1/spec/handlers/c/struct_handler_spec.rb
yard-0.9.5 spec/handlers/c/struct_handler_spec.rb
yard-0.9.4 spec/handlers/c/struct_handler_spec.rb
yard-0.9.3 spec/handlers/c/struct_handler_spec.rb
yard-0.9.2 spec/handlers/c/struct_handler_spec.rb
yard-0.9.1 spec/handlers/c/struct_handler_spec.rb
yard-0.9.0 spec/handlers/c/struct_handler_spec.rb