Permalink
Browse files

DocumentTest.exportDataToStream: expect proper line separator on Linux

  • Loading branch information...
1 parent 0afd725 commit bb7f8284bd17ff5dbeb1afd7f9b2d84668cf3558 @pavelfatin committed Dec 20, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/com/pavelfatin/sleeparchiver/model/DocumentTest.java
@@ -197,7 +197,7 @@ public void splitQuoted() {
@Test
public void exportDataToStream() throws IOException {
String data = writeDataAsStream(_nights);
- assertThat(data, equalTo(contentOf("data/data.csv", "\r\n")));
+ assertThat(data, equalTo(contentOf("data/data.csv", System.getProperty("line.separator"))));
}
private String writeDataAsStream(List<Night> nights) throws IOException {

0 comments on commit bb7f828

Please sign in to comment.