Skip to content

Commit

Permalink
fix(cli): change default path . to dir
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Jan 28, 2021
1 parent 4a48746 commit 71cd44d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions e2e/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ mod tests {
}

#[test]
fn should_run_coco_binary() {
fn should_exe_coco_failure_when_in_e2e_path() {
let mut cmd = Command::cargo_bin("coco").unwrap();
cmd.assert().success();
cmd.assert().failure();
}
}
2 changes: 1 addition & 1 deletion src/bin/coco.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ fn main() {
let mut repo = vec![];
let current = env::current_dir().unwrap();
repo.push(RepoConfig {
url: format!("{:?}", current),
url: current.into_os_string().to_str().unwrap().to_string(),
});
config = CocoConfig { repo: repo }
}
Expand Down

0 comments on commit 71cd44d

Please sign in to comment.