summaryrefslogtreecommitdiffhomepage
path: root/spec/code_objects/header_object_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/code_objects/header_object_spec.rb')
-rw-r--r--spec/code_objects/header_object_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/code_objects/header_object_spec.rb b/spec/code_objects/header_object_spec.rb
new file mode 100644
index 0000000..2e10a70
--- /dev/null
+++ b/spec/code_objects/header_object_spec.rb
@@ -0,0 +1,10 @@
+require_relative 'spec_helper'
+
+describe YARD::MRuby::CodeObjects::HeaderObject do
+ before { Registry.clear }
+
+ it "should return the name of the header for the path" do
+ header_object = YARD::MRuby::CodeObjects::HeaderObject.new(nil, :"mruby.h")
+ expect(header_object.path).to eq("mruby.h")
+ end
+end