diff options
Diffstat (limited to 'spec/code_objects')
| -rw-r--r-- | spec/code_objects/header_object_spec.rb | 10 | ||||
| -rw-r--r-- | spec/code_objects/spec_helper.rb | 1 |
2 files changed, 11 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 diff --git a/spec/code_objects/spec_helper.rb b/spec/code_objects/spec_helper.rb new file mode 100644 index 0000000..935238d --- /dev/null +++ b/spec/code_objects/spec_helper.rb @@ -0,0 +1 @@ +require_relative '../spec_helper' |
