Sha256: 90447b9c324b2246b5186be5914eaa52708a16f92c5cf6cc304729af2be9d5c4

Contents?: true

Size: 446 Bytes

Versions: 68

Compression:

Stored size: 446 Bytes

Contents

require File.dirname(__FILE__) + '/spec_helper'

describe YARD::Handlers::C::StructHandler do
  after { Registry.clear }

  it "should handle Struct class definitions" do
    parse_init <<-eof
      rb_cRange = rb_struct_define_without_accessor(
          "Range", rb_cFoo, range_alloc,
          "begin", "end", "excl", NULL);
    eof
    Registry.at('Range').type.should == :class
    Registry.at('Range').superclass.should == P(:Foo)
  end
end

Version data entries

68 entries across 52 versions & 7 rubygems

Version Path
challah-0.6.2 vendor/bundle/gems/yard-0.8.2/spec/handlers/c/struct_handler_spec.rb
yard-0.8.2.1 spec/handlers/c/struct_handler_spec.rb
challah-0.6.1 vendor/bundle/gems/yard-0.8.2/spec/handlers/c/struct_handler_spec.rb
challah-0.6.1 vendor/bundle/gems/yard-0.8.1/spec/handlers/c/struct_handler_spec.rb
yard-0.8.2 spec/handlers/c/struct_handler_spec.rb
challah-0.6.0 vendor/bundle/gems/yard-0.8.1/spec/handlers/c/struct_handler_spec.rb
yard-0.8.1 spec/handlers/c/struct_handler_spec.rb
yard-0.8.0 spec/handlers/c/struct_handler_spec.rb