Initial commit

This commit is contained in:
Jamie Winsor
2015-12-17 18:24:09 -08:00
commit 98168ddcf1
14 changed files with 1228 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
pub mod path;
+18
View File
@@ -0,0 +1,18 @@
use std::env;
use std::path::PathBuf;
pub fn exe_path() -> PathBuf {
env::current_exe().unwrap()
}
pub fn root() -> PathBuf {
exe_path().parent().unwrap().parent().unwrap().parent().unwrap().join("tests")
}
pub fn fixtures() -> PathBuf {
root().join("fixtures")
}
pub fn fixture(name: &str) -> PathBuf {
fixtures().join(name)
}