spec/templates/helpers/shared_signature_examples.rb in yard-0.7.1 vs spec/templates/helpers/shared_signature_examples.rb in yard-0.7.2

- old
+ new

@@ -106,6 +106,16 @@ YARD.parse_string <<-'eof' def foo; yield(a, b, c) end eof signature(Registry.at('#foo')).should == @results[:block] end + + it "should use regular return tag if the @overload is empty" do + YARD.parse_string <<-'eof' + # @overload foobar + # Hello world + # @return [String] + def foo; end + eof + signature(Registry.at('#foo').tag(:overload)).should == @results[:empty_overload] + end end