diff options
| author | bluehavana <[email protected]> | 2017-01-21 21:34:55 -0800 |
|---|---|---|
| committer | bluehavana <[email protected]> | 2017-01-21 22:15:32 -0800 |
| commit | 42773d99a92696787c333b1db5b815ecad748c5d (patch) | |
| tree | ff2c0d91e5c35206a167dc51f26e3a72df4ba1e1 /spec/handlers/c/source/module_handler_spec.rb | |
| parent | b27c45a15069d89f735450944133608bce1201db (diff) | |
| download | yard-mruby-42773d99a92696787c333b1db5b815ecad748c5d.tar.gz yard-mruby-42773d99a92696787c333b1db5b815ecad748c5d.zip | |
Update to Yard >= 0.9.0
* Return a string from CodeObjects::HeaderObject#path
A change in YARD::Serializers::FileSystemSerializer stopped
calling `#to_s` on the the CodeObject passed, causing a NoMethodError
for "+" missing Symbol (#path was just an alias to #name).
Added minimal specs to cover only this case.
* Fixed some handler specs dealing with namespaces.
A bug in the Yard c handler allowed namespacing to be determined
without a proper parent RClass. See lsegal/yard#912
* There were some breaking changes to templates.
Diffstat (limited to 'spec/handlers/c/source/module_handler_spec.rb')
| -rw-r--r-- | spec/handlers/c/source/module_handler_spec.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/handlers/c/source/module_handler_spec.rb b/spec/handlers/c/source/module_handler_spec.rb index fd08ae6..9641eb3 100644 --- a/spec/handlers/c/source/module_handler_spec.rb +++ b/spec/handlers/c/source/module_handler_spec.rb @@ -7,7 +7,11 @@ describe YARD::MRuby::Handlers::C::Source::ModuleHandler do end it "should register modules under namespaces" do - parse_init 'mFoo = mrb_define_module_under(mrb, mBar, "Foo");' + parse_init(<<-eof) + cBar = mrb_define_module(mrb,"Bar"); + cFoo = mrb_define_module_under(mrb, cBar, "Foo"); + eof + expect(Registry.at('Bar::Foo').type).to be :module end |
