spec/handlers/constant_handler_spec.rb in yard-0.9.12 vs spec/handlers/constant_handler_spec.rb in yard-0.9.13

- old
+ new

@@ -31,9 +31,12 @@ obj = Registry.at("MyStructWithConstant") expect(obj).to be_kind_of(CodeObjects::ClassObject) expect(obj.constants[0].docstring).to eq 'A constant.' expect(obj.constants[0].name).to eq :CONSTANT expect(obj.constants[0].value).to eq "42" + expect(obj.constants[1].docstring).to eq 'Special constant (empty symbol)' + expect(obj.constants[1].name).to eq :EMPTY + expect(obj.constants[1].value).to eq ':""' end it "turns Const = Struct.new('Name', :sym) into class Const with attr :sym" do obj = Registry.at("NotMyClass") expect(obj).to be_kind_of(CodeObjects::ClassObject)