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/header | |
| parent | 82e906d74dcc943d737ced7a6ebfee1e71a74aaf (diff) | |
| download | yard-mruby-3a60c88a3b3dbd334e4769a6283fb90c0495c25b.tar.gz yard-mruby-3a60c88a3b3dbd334e4769a6283fb90c0495c25b.zip | |
Sorting tons of stuff around
Diffstat (limited to 'spec/handlers/header')
| -rw-r--r-- | spec/handlers/header/function_handler_spec.rb | 12 | ||||
| -rw-r--r-- | spec/handlers/header/spec_helper.rb | 21 |
2 files changed, 0 insertions, 33 deletions
diff --git a/spec/handlers/header/function_handler_spec.rb b/spec/handlers/header/function_handler_spec.rb deleted file mode 100644 index b97abb6..0000000 --- a/spec/handlers/header/function_handler_spec.rb +++ /dev/null @@ -1,12 +0,0 @@ -require_relative 'spec_helper' - -describe YARD::MRuby::Handlers::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 -end diff --git a/spec/handlers/header/spec_helper.rb b/spec/handlers/header/spec_helper.rb deleted file mode 100644 index da2b74f..0000000 --- a/spec/handlers/header/spec_helper.rb +++ /dev/null @@ -1,21 +0,0 @@ - -require_relative '../spec_helper' - -def header(src, file = 'stdin.h') - YARD::Registry.clear - parser = YARD::Parser::SourceParser.new(:header) - parser.file = file - parser.parse(StringIO.new(src)) -end - -def header_line(src) - header <<-EOF - #include "mruby.h" - #ifndef HEADER_H - #define HEADER_H - MRB_BEGIN_DECL - #{src} - MRB_END_DECL - #endif - EOF -end |
