spec/handlers/constant_handler_spec.rb in yard-0.7.2 vs spec/handlers/constant_handler_spec.rb in yard-0.7.3
- old
+ new
@@ -10,10 +10,10 @@
it "should only parse valid constants" do
Registry.at("A::B::notaconstant").should be_nil
end
it "should maintain newlines" do
- Registry.at("A::B::MYCONSTANT").value.should == "A +\nB +\nC +\nD"
+ Registry.at("A::B::MYCONSTANT").value.gsub("\r", "").should == "A +\nB +\nC +\nD"
end
it "should turn Const = Struct.new(:sym) into class Const with attr :sym" do
obj = Registry.at("MyClass")
obj.should be_kind_of(CodeObjects::ClassObject)
\ No newline at end of file