From 42773d99a92696787c333b1db5b815ecad748c5d Mon Sep 17 00:00:00 2001 From: bluehavana Date: Sat, 21 Jan 2017 21:34:55 -0800 Subject: Update to Yard >= 0.9.0 * Return a string from CodeObjects::HeaderObject#path A change in YARD::Serializers::FileSystemSerializer stopped calling `#to_s` on the the CodeObject passed, causing a NoMethodError for "+" missing Symbol (#path was just an alias to #name). Added minimal specs to cover only this case. * Fixed some handler specs dealing with namespaces. A bug in the Yard c handler allowed namespacing to be determined without a proper parent RClass. See lsegal/yard#912 * There were some breaking changes to templates. --- spec/code_objects/header_object_spec.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 spec/code_objects/header_object_spec.rb (limited to 'spec/code_objects/header_object_spec.rb') 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 -- cgit v1.2.3