// Given the dependency file contains two dependencies with the same name
// When the command is run
// Then the command fails with an error
Given the dependency file contains two dependencies with the same name
When the command is run
Then the command fails with an error
Given the dependency file contains two dependencies with the same name When the command is run Then the command fails with an error
fn dup_dep_names() {
    let mut cmd = setup_test_with_deps_file(
        "dup_dep_names",
        indoc!{"
            deps
            my_scripts git git://localhost/my_scripts.git master
            my_scripts git git://localhost/my_scripts.git master
        "},
    );
    let cmd_result = cmd.assert();
    cmd_result
        .code(1)
        .stdout("")
        .stderr(
            "dpnd.txt:4: A dependency named 'my_scripts' is already defined \
             on line 3\n",
        );
}
fn dup_dep_names ( ) { let mut cmd = setup_test_with_deps_file ( " " , indoc ! { " " } , ) ; let cmd_result = cmd . assert ( ) ; cmd_result . code ( 1 ) . stdout ( " " ) . stderr ( " \
 \n " , ) ; }
Given the dependency file contains two dependencies with the same name
When the command is run
Then the command fails with an error
Given the dependency file contains two dependencies with the same name When the command is run Then the command fails with an error