cargo-make 0.37.24

Rust task runner and build tool.
Documentation
use super::*;
use std::env;

#[test]
fn load_from_path_exists() {
    let cwd = env::current_dir().unwrap();
    let path = cwd.join("examples/cargo-make");
    let cache_data = load_from_path(path);

    assert_eq!(cache_data.last_update_check.unwrap(), 1000u64);
}

#[test]
fn load_from_path_not_exists() {
    let path = PathBuf::from("examples2/.cargo-make");
    let cache_data = load_from_path(path);

    assert!(cache_data.last_update_check.is_none());
}

#[test]
#[ignore]
fn load_with_cargo_home() {
    let path = env::current_dir().unwrap();
    let directory = path.join("examples/cargo-make");
    envmnt::set("CARGO_MAKE_HOME", directory.to_str().unwrap());
    let cache_data = load();

    envmnt::remove("CARGO_MAKE_HOME");

    assert_eq!(cache_data.last_update_check.unwrap(), 1000u64);
}

#[test]
#[ignore]
fn load_without_cargo_home() {
    envmnt::remove("CARGO_MAKE_HOME");
    load();
}