Change spec to use Tempfile with a block
Change spec to use Tempfile with a block

This spec has a sporadic test failure with the way it creates a tempfile.
Prior to this commit, the tempfile is created and closed before the spec
runs. However, if the garbarge collector runs after this, then Ruby will
delete the temp file.  This commit changes it to use the Tempfile.create
method with a block, which will prevent Ruby from deleting during the
test.

NickLaMuro/manageiq,NickLaMuro/manageiq,d-m-u/manageiq,jrafanie/manageiq,jrafanie/manageiq,kbrock/manageiq,skateman/manageiq,d-m-u/manageiq,jrafanie/manageiq,agrare/manageiq,mzazrivec/manageiq,jvlcek/manageiq,kbrock/manageiq,chessbyte/manageiq,kbrock/manageiq,jrafanie/manageiq,mzazrivec/manageiq,skateman/manageiq,ManageIQ/manageiq,jvlcek/manageiq,chessbyte/manageiq,skateman/manageiq,d-m-u/manageiq,jvlcek/manageiq,d-m-u/manageiq,chessbyte/manageiq,mzazrivec/manageiq,NickLaMuro/manageiq,mzazrivec/manageiq,ManageIQ/manageiq,ManageIQ/manageiq,jvlcek/manageiq,kbrock/manageiq,skateman/manageiq,agrare/manageiq,chessbyte/manageiq,agrare/manageiq,ManageIQ/manageiq,agrare/manageiq,NickLaMuro/manageiq