diff --git a/test/rubygems/test_gem_ext_cargo_builder.rb b/test/rubygems/test_gem_ext_cargo_builder.rb index 0c8de2ff6c..ab80e5a6e1 100644 --- a/test/rubygems/test_gem_ext_cargo_builder.rb +++ b/test/rubygems/test_gem_ext_cargo_builder.rb @@ -11,10 +11,10 @@ class TestGemExtCargoBuilder < Gem::TestCase 'RUSTUP_HOME' => File.join(@orig_env['HOME'], '.rustup'), } + super + system(@rust_envs, 'cargo', '-V', out: IO::NULL, err: [:child, :out]) pend 'cargo not present' unless $?.success? - - super end def setup_rust_gem(name)