diff options
| author | Seba Gamboa <[email protected]> | 2015-09-23 15:37:14 -0300 |
|---|---|---|
| committer | Seba Gamboa <[email protected]> | 2015-09-23 15:37:14 -0300 |
| commit | 31e52a0a7d6ffc367132f260c18b41c99dbcb5c1 (patch) | |
| tree | 2b920221a6a1187d8625ff24ebde0b01288fe35f /spec | |
| parent | 3474e63884bc7fb8dbacd2c94a5b30f6abf155c8 (diff) | |
| download | yard-mruby-31e52a0a7d6ffc367132f260c18b41c99dbcb5c1.tar.gz yard-mruby-31e52a0a7d6ffc367132f260c18b41c99dbcb5c1.zip | |
Handlinc class comments
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/handlers/c/mruby_class_handler_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/handlers/c/mruby_class_handler_spec.rb b/spec/handlers/c/mruby_class_handler_spec.rb index 521ad62..5c13ab2 100644 --- a/spec/handlers/c/mruby_class_handler_spec.rb +++ b/spec/handlers/c/mruby_class_handler_spec.rb @@ -29,4 +29,13 @@ describe YARD::Handlers::C::MRubyClassHandler do expect(Registry.at('Bar').superclass).to eq Registry.at('Foo') end + it "should associate declaration comments as class docstring" do + parse_init(<<-eof) + /* Docstring! */ + cFoo = mrb_define_class(mrb, "Foo", mrb->object_class); + eof + + expect(Registry.at('Foo').docstring).not_to be_blank + end + end |
