fn unavailable_git_proj_src() {
    let mut cmd = setup_test_with_deps_file(
        "unavailable_git_proj_src",
        indoc!{"
            deps

            proj git git://localhost/my_scripts.git master
        "},
    );

    let cmd_result = cmd.assert();

    cmd_result
        .code(1)
        .stdout("")
        .stderr(indoc!{"
            Couldn't retrieve the source for the dependency 'proj': `git \
             clone git://localhost/my_scripts.git .` failed with the \
             following output:

            [!] Cloning into '.'...
            [!] fatal: unable to connect to localhost:
            [!] localhost[0: 127.0.0.1]: errno=Connection refused
            [!] localhost[1: ::1]: errno=Cannot assign requested address
            [!] 

        "});
}
// Given the dependency file specifies a Git dependency that is unavailable
// When the command is run
// Then the command fails with an error
Given the dependency file specifies a Git dependency that is unavailable
When the command is run
Then the command fails with an error
Given the dependency file specifies a Git dependency that is unavailable When the command is run Then the command fails with an error
fn unavailable_git_proj_src() {
    let mut cmd = setup_test_with_deps_file(
        "unavailable_git_proj_src",
        indoc!{"
            deps
            proj git git://localhost/my_scripts.git master
        "},
    );
    let cmd_result = cmd.assert();
    cmd_result
        .code(1)
        .stdout("")
        .stderr(indoc!{"
            Couldn't retrieve the source for the dependency 'proj': `git \
             clone git://localhost/my_scripts.git .` failed with the \
             following output:
            [!] Cloning into '.'...
            [!] fatal: unable to connect to localhost:
            [!] localhost[0: 127.0.0.1]: errno=Connection refused
            [!] localhost[1: ::1]: errno=Cannot assign requested address
            [!] 
        "});
}
fn unavailable_git_proj_src ( ) { let mut cmd = setup_test_with_deps_file ( " " , indoc ! { " " } , ) ; let cmd_result = cmd . assert ( ) ; cmd_result . code ( 1 ) . stdout ( " " ) . stderr ( indoc ! { " \
 \
 " } ) ; }
Given the dependency file specifies a Git dependency that is unavailable
When the command is run
Then the command fails with an error
Given the dependency file specifies a Git dependency that is unavailable When the command is run Then the command fails with an error