Fixed to expanded URL

This commit is contained in:
Corey Quinn 2015-08-06 13:14:39 -07:00
parent e4f78637a0
commit d5cb70360f
2 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ def install(runas=None):
'''
# RVM dependencies on Ubuntu 10.04:
# bash coreutils gzip bzip2 gawk sed curl git-core subversion
installer = 'https://get.rvm.io'
installer = 'https://raw.githubusercontent.com/rvm/rvm/master/binscripts/rvm-installer'
ret = __salt__['cmd.run_all'](
# the RVM installer automatically does a multi-user install when it is
# invoked with root privileges

View File

@ -40,7 +40,7 @@ class TestRvmModule(TestCase):
mock = MagicMock(return_value={'retcode': 0})
with patch.dict(rvm.__salt__, {'cmd.run_all': mock}):
rvm.install()
mock.assert_called_once_with('curl -Ls https://get.rvm.io | bash -s stable', runas=None, python_shell=True)
mock.assert_called_once_with('curl -Ls https://raw.githubusercontent.com/rvm/rvm/master/binscripts/rvm-installer | bash -s stable', runas=None, python_shell=True)
def test_install_ruby_nonroot(self):
mock = MagicMock(return_value={'retcode': 0, 'stdout': 'stdout'})