Fix tests

This commit is contained in:
Carl Lerche + Yehuda Katz 2014-06-13 14:19:06 -07:00 committed by Tim Carey-Smith
parent f9601cd2f6
commit 512ec4b794
2 changed files with 2 additions and 10 deletions

View File

@ -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()
}

View File

@ -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());