summaryrefslogtreecommitdiffhomepage
path: root/spec/handlers/c/mruby_module_handler_spec.rb
diff options
context:
space:
mode:
authorSeba Gamboa <[email protected]>2015-09-24 12:40:55 -0300
committerSeba Gamboa <[email protected]>2015-09-24 12:40:55 -0300
commit36407e1eb5c274f5e19b0f55114d4c66f5de7753 (patch)
treeebf383d6c8a207884323aec1486a0e4b2fb28b71 /spec/handlers/c/mruby_module_handler_spec.rb
parent7b633663385725c6665118dc5fc014c26e7ffc04 (diff)
downloadyard-mruby-36407e1eb5c274f5e19b0f55114d4c66f5de7753.tar.gz
yard-mruby-36407e1eb5c274f5e19b0f55114d4c66f5de7753.zip
Move MRuby c Handlers into YARD::MRuby and disable defaults
Diffstat (limited to 'spec/handlers/c/mruby_module_handler_spec.rb')
-rw-r--r--spec/handlers/c/mruby_module_handler_spec.rb30
1 files changed, 0 insertions, 30 deletions
diff --git a/spec/handlers/c/mruby_module_handler_spec.rb b/spec/handlers/c/mruby_module_handler_spec.rb
deleted file mode 100644
index 39530ff..0000000
--- a/spec/handlers/c/mruby_module_handler_spec.rb
+++ /dev/null
@@ -1,30 +0,0 @@
-require_relative 'spec_helper'
-
-describe YARD::Handlers::C::MRubyModuleHandler do
- it "should register modules" do
- parse_init 'mFoo = mrb_define_module(mrb, "Foo");'
- expect(Registry.at('Foo').type).to be :module
- end
-
- it "should register modules under namespaces" do
- parse_init 'mFoo = mrb_define_module_under(mrb, mBar, "Foo");'
- expect(Registry.at('Bar::Foo').type).to be :module
- end
-
- it "should remember symbol defined with module" do
- parse_init(<<-eof)
- cXYZ = mrb_define_module(mrb, "Foo");
- mrb_define_method(mrb, cXYZ, "bar", bar, 0);
- eof
- expect(Registry.at('Foo').type).to be :module
- expect(Registry.at('Foo#bar')).not_to be_nil
- end
-
- it "should associate declaration comments as module docstring" do
- parse_init(<<-eof)
- /* Docstring! */
- mFoo = mrb_define_module(mrb, "Foo");
- eof
- expect(Registry.at('Foo').docstring).not_to be_blank
- end
-end