Add foundations for 'rojo serve' tests

This commit is contained in:
Lucien Greathouse
2019-09-03 13:48:27 -07:00
parent 6747d97d60
commit f1729163cf
7 changed files with 65 additions and 10 deletions

View File

@@ -13,7 +13,10 @@ pub fn get_rojo_path() -> PathBuf {
pub fn get_working_dir_path() -> PathBuf {
let mut manifest_dir = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
assert!(manifest_dir.pop(), "Manifest directory did not have a parent");
assert!(
manifest_dir.pop(),
"Manifest directory did not have a parent"
);
manifest_dir
}
@@ -25,4 +28,4 @@ pub fn get_build_tests_path() -> PathBuf {
pub fn get_serve_tests_path() -> PathBuf {
let manifest_dir = Path::new(env!("CARGO_MANIFEST_DIR"));
manifest_dir.join("serve-tests")
}
}