CSV export: allow spaces on filename and fix tests

This commit is contained in:
2016-06-04 22:06:01 -04:00
parent 650971bf36
commit cabcd5b1bf
2 changed files with 4 additions and 4 deletions

View File

@@ -366,9 +366,9 @@ public class HabitTest extends BaseTest
HabitFixtures.createShortHabit(); HabitFixtures.createShortHabit();
String expectedCSV = String expectedCSV =
"Name,Description,NumRepetitions,Interval,Color\n" + "Position,Name,Description,NumRepetitions,Interval,Color\n" +
"Meditate,Did you meditate this morning?,1,1,#AFB42B\n" + "001,Meditate,Did you meditate this morning?,1,1,#AFB42B\n" +
"Wake up early,Did you wake up before 6am?,2,3,#00897B\n"; "002,Wake up early,Did you wake up before 6am?,2,3,#00897B\n";
StringWriter writer = new StringWriter(); StringWriter writer = new StringWriter();
Habit.writeCSV(Habit.getAll(true), writer); Habit.writeCSV(Habit.getAll(true), writer);