summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2016-09-24 21:31:24 -0400
committerAndrew Gallant <jamslam@gmail.com>2016-09-24 21:31:24 -0400
commit8eeb0c0b60da59828a48d995e969bdba5816ea31 (patch)
tree9cf355a5fe11aa8bc7d029660d9f022b4753890f /tests
parent423f2a1927d770c5fc2d5cb4980ac66e9c149ea5 (diff)
Add --no-ignore-vcs flag.
This flag will respect .ignore but not .gitignore. Closes #68.
Diffstat (limited to 'tests')
-rw-r--r--tests/tests.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/tests.rs b/tests/tests.rs
index 55cb2684..e94ec35f 100644
--- a/tests/tests.rs
+++ b/tests/tests.rs
@@ -687,6 +687,18 @@ be, to a very large extent, the result of luck. Sherlock Holmes
assert_eq!(lines, expected);
});
+// See: https://github.com/BurntSushi/ripgrep/issues/68
+clean!(feature_68, "test", ".", |wd: WorkDir, mut cmd: Command| {
+ wd.create(".gitignore", "foo");
+ wd.create(".ignore", "bar");
+ wd.create("foo", "test");
+ wd.create("bar", "test");
+ cmd.arg("--no-ignore-vcs");
+
+ let lines: String = wd.stdout(&mut cmd);
+ assert_eq!(lines, "foo:test\n");
+});
+
#[test]
fn binary_nosearch() {
let wd = WorkDir::new("binary_nosearch");