mirror of https://github.com/rust-lang/cargo
Fix tests
This commit is contained in:
parent
f9601cd2f6
commit
512ec4b794
|
@ -64,14 +64,6 @@ impl ProjectBuilder {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn join<T: Str>(&self, name: &str, path: T) -> ProjectBuilder {
|
||||
ProjectBuilder {
|
||||
name: name.as_slice().to_str(),
|
||||
root: self.root.join(path.as_slice()).clone(),
|
||||
files: vec!()
|
||||
}
|
||||
}
|
||||
|
||||
pub fn root(&self) -> Path {
|
||||
self.root.clone()
|
||||
}
|
||||
|
|
|
@ -67,8 +67,8 @@ test!(cargo_compile_simple_git_dep {
|
|||
|
||||
assert_that(project.cargo_process("cargo-compile"),
|
||||
execs()
|
||||
.with_stdout(format!("Compiling dep1 v0.5.0 (file:{})\nCompiling foo v0.5.0 (file:{})\n",
|
||||
git_root.display(), root.display()))
|
||||
.with_stdout(format!("Updating git repository `file:{}`\nCompiling dep1 v0.5.0 (file:{})\nCompiling foo v0.5.0 (file:{})\n",
|
||||
git_root.display(), git_root.display(), root.display()))
|
||||
.with_stderr(""));
|
||||
|
||||
assert_that(&project.root().join("target/foo"), existing_file());
|
||||
|
|
Loading…
Reference in New Issue