Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions tests/integration/modules/test_gem.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import pytest

import salt.utils.platform
from salt.ext.tornado.httpclient import HTTPClient
from tests.support.case import ModuleCase

Expand Down Expand Up @@ -31,6 +32,7 @@ def setUp(self):
if check_status() is False:
self.skipTest("External resource 'https://rubygems.org' is not available")

self.GEM_BIN = "gem.cmd" if salt.utils.platform.is_windows() else "gem"
self.GEM = "tidy"
self.GEM_VER = "1.1.2"
self.OLD_GEM = "brass"
Expand All @@ -54,6 +56,11 @@ def uninstall_gem():

self.addCleanup(uninstall_gem)

def run_function(self, function, *args, **kwargs):
"""Override run_function to use the gem binary"""
kwargs["gem_bin"] = self.GEM_BIN
return super().run_function(function, *args, **kwargs)

@pytest.mark.slow_test
def test_install_uninstall(self):
"""
Expand Down