spec/unit/align/align_left_spec.rb in strings-0.1.5 vs spec/unit/align/align_left_spec.rb in strings-0.1.6
- old
+ new
@@ -57,6 +57,15 @@
"of the earth which**********************\n",
"is not infinitely***********************\n",
"outdone by the madness of men***********"
].join)
end
+
+ it "handles \r\n line separator" do
+ text = "Closes #360\r\n\r\nCloses !217"
+ expect(Strings::Align.align_left(text, 27)).to eq([
+ "Closes #360 ",
+ " ",
+ "Closes !217 "
+ ].join("\r\n"))
+ end
end