spec/unit/align/align_right_spec.rb in strings-0.1.5 vs spec/unit/align/align_right_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_right(text, 27)).to eq([ + " Closes #360", + " ", + " Closes !217" + ].join("\r\n")) + end end