forked from rojo-rbx/rojo
Add foundations for 'rojo serve' tests
This commit is contained in:
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user