diff options
author | Nora <nora.widdecke@tu-bs.de> | 2019-02-25 14:54:46 +0100 |
---|---|---|
committer | Nora <nora.widdecke@tu-bs.de> | 2019-02-25 14:54:46 +0100 |
commit | 50cfd07a1725fe3a62258334a097d5c859220ad0 (patch) | |
tree | 8ed1d66e3c907a93fc931c0fd99bb4ae379a0400 /src | |
parent | 259ca5427f374ceb2dfaacefc0f66e0ae8e14526 (diff) |
index: fix test
Diffstat (limited to 'src')
-rw-r--r-- | src/actions/index/action.rs | 4 | ||||
-rw-r--r-- | src/cli.rs | 7 |
2 files changed, 5 insertions, 6 deletions
diff --git a/src/actions/index/action.rs b/src/actions/index/action.rs index 62cdf32..01cf098 100644 --- a/src/actions/index/action.rs +++ b/src/actions/index/action.rs @@ -167,12 +167,10 @@ mod integration { use structopt::StructOpt; #[test] - #[ignore] fn test_index() { let testdir = prepare_testdir("testdir"); - //TODO This is not thread safe - let args = CommandLine::from_iter(&["index"]); + let args = CommandLine::from_iter(&["khaleesi", "index"]); if let Index(x) = args.cmd { action_index(&x).unwrap(); } @@ -1,13 +1,14 @@ -use structopt::StructOpt; use std::path::PathBuf; +use structopt::StructOpt; #[derive(Debug, StructOpt)] #[structopt( author = "", - name = "khalessi", + name = "khaleessi", about = "Command line calendar tool.", - raw(setting = "structopt::clap::AppSettings::VersionlessSubcommands"), + raw(setting = "structopt::clap::AppSettings::VersionlessSubcommands") )] + pub struct CommandLine { /// verbosity #[structopt(short = "v", parse(from_occurrences))] |