ripasso 0.8.0

A password manager that uses the file format of the standard unix password manager 'pass'
Documentation
use crate::{error::Result, git::should_sign, test_helpers::UnpackedDir};

#[test]
fn test_should_sign_true() -> Result<()> {
    let dir = UnpackedDir::new("test_should_sign_true")?;

    let repo = git2::Repository::open(dir.path())?;

    let result = should_sign(&repo);

    assert!(result);

    Ok(())
}

#[test]
fn test_should_sign_false() -> Result<()> {
    let dir = UnpackedDir::new("test_should_sign_false")?;

    let repo = git2::Repository::open(dir.path())?;

    let result = should_sign(&repo);

    assert!(!result);

    Ok(())
}