Skip to content

Commit

Permalink
Merge pull request #62 from euank/tmp/pr/clpa
Browse files Browse the repository at this point in the history
Remove 'suggestions' feature from 'clap-rs'
  • Loading branch information
euank authored Feb 25, 2018
2 parents aeafda6 + 6b4280e commit 69d54c0
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 15 deletions.
7 changes: 0 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,13 @@ readme = "README.md"
keywords = ["autojump", "shell", "productivity-tool"]
license = "GPL-3.0"

[dependencies.clap]
version = "~2"
default-features = false
# Remove 'suggestions' feature, see #60
features = ["color", "vec_map"]

[dependencies]
clap = "~2"
rmp-serde = "~0.13"
serde = "~1"
serde_derive = "~1"
Expand Down
7 changes: 0 additions & 7 deletions tests/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions tests/src/integ.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,3 +210,24 @@ fn it_handles_help_output_shell(shell: &Shell) {
assert_eq!(help2, help3);
assert!(help1.ends_with("\n0"));
}

// Test for https://github.com/euank/pazi/issues/60
#[test]
fn it_handles_things_that_look_sorta_like_init_but_not_really() {
for shell in SUPPORTED_SHELLS.iter() {
let s = Shell::from_str(shell);
it_handles_things_that_look_sorta_etc_shell(&s);
}
}

fn it_handles_things_that_look_sorta_etc_shell(shell: &Shell) {
let tmpdir = TempDir::new("pazi_integ").unwrap();
let root = tmpdir.path();
let mut h = Harness::new(&root, &Pazi, shell);
let igni = root.join("ignition").into_os_string().into_string().unwrap();

h.create_dir(&igni);
h.visit_dir(&igni);
h.visit_dir(&root.to_string_lossy());
assert_eq!(h.jump("igni"), igni);
}

0 comments on commit 69d54c0

Please sign in to comment.