Test shims executable

This commit is contained in:
Victor Borja 2016-12-10 12:22:36 -06:00 committed by Stratus3D
parent 2826f66849
commit 92ad386f78

View File

@ -50,3 +50,11 @@ teardown() {
run grep "# asdf-plugin: dummy" $ASDF_DIR/shims/dummy run grep "# asdf-plugin: dummy" $ASDF_DIR/shims/dummy
[ "$status" -eq 0 ] [ "$status" -eq 0 ]
} }
@test "install_command running a shim should call the plugin executable" {
run install_command dummy 1.0
[ "$status" -eq 0 ]
# run the shim which should be on path and expect the plugin's output
[ "dummy" $(dummy) ]
}