diff options
| author | Seba Gamboa <[email protected]> | 2015-09-25 18:01:14 -0300 |
|---|---|---|
| committer | Seba Gamboa <[email protected]> | 2015-09-25 18:01:14 -0300 |
| commit | 3a60c88a3b3dbd334e4769a6283fb90c0495c25b (patch) | |
| tree | de3d8ec187771d6e2d5f42da864c19ee6d69d890 /spec/handlers/c/header/function_handler_spec.rb | |
| parent | 82e906d74dcc943d737ced7a6ebfee1e71a74aaf (diff) | |
| download | yard-mruby-3a60c88a3b3dbd334e4769a6283fb90c0495c25b.tar.gz yard-mruby-3a60c88a3b3dbd334e4769a6283fb90c0495c25b.zip | |
Sorting tons of stuff around
Diffstat (limited to 'spec/handlers/c/header/function_handler_spec.rb')
| -rw-r--r-- | spec/handlers/c/header/function_handler_spec.rb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/spec/handlers/c/header/function_handler_spec.rb b/spec/handlers/c/header/function_handler_spec.rb new file mode 100644 index 0000000..2270584 --- /dev/null +++ b/spec/handlers/c/header/function_handler_spec.rb @@ -0,0 +1,22 @@ +require_relative 'spec_helper' + +describe YARD::MRuby::Handlers::C::Header::FunctionHandler do + it "should register functions" do + header_line <<-eof + MRB_API void mrb_foo( void ); + eof + expect(Registry.at('mrb_foo')).not_to be_nil + + # puts Registry.send(:thread_local_store).inspect + end + + it "should find docstrings attached to functions" do + header_line <<-eof + /* DOCSTRING */ + MRB_API void mrb_foo( void ); + eof + + foo = Registry.at('mrb_foo') + expect(foo.docstring).to eq 'DOCSTRING' + end +end |
