(c6a61b4) Resolve a board through a pointer file and a shared boards repo, and bump to 0.33.0
This commit is contained in:
+11
-1
@@ -247,7 +247,17 @@ fn nothing_is_created_without_a_title() {
|
||||
fn init_creates_the_campaigns_directory() {
|
||||
let temp = TempDir::new().unwrap();
|
||||
|
||||
let out = run(&temp, &["init"]);
|
||||
// Isolated HOME and XDG so `init` cannot decide on a real machine's boards config:
|
||||
// the board has to be local no matter whose machine runs the suite.
|
||||
let mut init = Command::cargo_bin(BIN_NAME).unwrap();
|
||||
let out = init
|
||||
.current_dir(temp.path())
|
||||
.env("HOME", temp.path())
|
||||
.env("XDG_CONFIG_HOME", temp.path().join("config"))
|
||||
.env("XDG_DATA_HOME", temp.path().join("data"))
|
||||
.arg("init")
|
||||
.output()
|
||||
.unwrap();
|
||||
assert!(out.status.success(), "{}", stderr(&out));
|
||||
|
||||
assert!(temp.child(".worklane").child("campaigns").path().is_dir());
|
||||
|
||||
Reference in New Issue
Block a user