Skip to content

Commit

Permalink
NanoTest: ignore nanorc files
Browse files Browse the repository at this point in the history
  • Loading branch information
mattirn committed Mar 31, 2020
1 parent f0d7f23 commit db9f36e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion builtins/src/test/java/org/jline/builtins/NanoTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.nio.charset.StandardCharsets;
import java.nio.file.Paths;

public class NanoTest {

Expand All @@ -29,7 +30,8 @@ public void nanoBufferLineOverflow() throws Exception {
}
terminal.processInputByte(KeyMap.ctrl('X').getBytes()[0]);
terminal.processInputByte('n');
Nano nano = new Nano(terminal, new File("target/test.txt"));
String[] argv = {"--ignorercfiles"};
Nano nano = new Nano(terminal, Paths.get("target/test.txt"), Options.compile(Nano.usage()).parse(argv));
nano.run();
}
}

0 comments on commit db9f36e

Please sign in to comment.