summaryrefslogtreecommitdiffhomepage
path: root/spec/handlers/header/function_handler_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/handlers/header/function_handler_spec.rb')
-rw-r--r--spec/handlers/header/function_handler_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/handlers/header/function_handler_spec.rb b/spec/handlers/header/function_handler_spec.rb
new file mode 100644
index 0000000..8ad5334
--- /dev/null
+++ b/spec/handlers/header/function_handler_spec.rb
@@ -0,0 +1,10 @@
+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
+ end
+end