[rubygems/rubygems] Fix test errors when cargo not present
Currently our tests try to detect whether cargo is installed or not,
and if not, set tests that need cargo as pending.
However, when this happens that test setup method is completely
skipped, meaning that the teardown method will blow up when trying to
switch back to the original folder, since it was not set.
[rubygems/rubygems] Fix test errors when
cargo
not presentCurrently our tests try to detect whether
cargo
is installed or not,and if not, set tests that need
cargo
as pending.However, when this happens that test
setup
method is completelyskipped, meaning that the
teardown
method will blow up when trying toswitch back to the original folder, since it was not set.
This commit fixes that.
https://github.com/rubygems/rubygems/commit/1e4c1e6492