diff --git a/tests/unit/plugins/modules/test_cpanm.yaml b/tests/unit/plugins/modules/test_cpanm.yaml index ff4bd9c0f7e..14e03dc3616 100644 --- a/tests/unit/plugins/modules/test_cpanm.yaml +++ b/tests/unit/plugins/modules/test_cpanm.yaml @@ -357,3 +357,29 @@ cpanm (App::cpanminus) version 1.7047 (/usr/local/bin/cpanm) perl version 5.041005 (/usr/local/bin/perl) err: "" +- id: install_dancer_with_recommends + input: + name: Dancer2 + install_recommendations: true + version: "1.1.2" + output: + changed: true + mocks: + run_command: + - command: [/testbin/cpanm, --version] + environ: *env-def-true + rc: 0 + out: | + cpanm (App::cpanminus) version 1.7047 (/usr/local/bin/cpanm) + perl version 5.041005 (/usr/local/bin/perl) + err: "" + - command: [/testbin/perl, -le, 'use Dancer;'] + environ: *env-def-false + rc: 0 + out: "" + err: "" + - command: [/testbin/perl, -le, 'use Unicode::UTF8;'] + environ: *env-def-false + rc: 0 + out: "" + err: ""