Since the code is invoking `pkginfo '-Q', resource[:name]` this needs to stub out the call by  doing `provider.stubs(:pkginfo).with('-Q', 'tcsh')`