Exemplo n.º 1
0
 def test_install(self):
     """
     Test for install Rbenv systemwide
     """
     with patch.object(rbenv, "_rbenv_path", return_value=True):
         with patch.object(rbenv, "_install_rbenv", return_value=True):
             with patch.object(rbenv, "_install_ruby_build", return_value=True):
                 with patch.object(os.path, "expanduser", return_value="A"):
                     self.assertTrue(rbenv.install())
Exemplo n.º 2
0
 def test_install(self):
     '''
     Test for install Rbenv systemwide
     '''
     with patch.object(rbenv, '_rbenv_path', return_value=True):
         with patch.object(rbenv, '_install_rbenv', return_value=True):
             with patch.object(rbenv, '_install_ruby_build',
                               return_value=True):
                 with patch.object(os.path, 'expanduser', return_value='A'):
                     self.assertTrue(rbenv.install())
Exemplo n.º 3
0
 def test_install(self):
     '''
     Test for install Rbenv systemwide
     '''
     with patch.object(rbenv, '_rbenv_path', return_value=True):
         with patch.object(rbenv, '_install_rbenv', return_value=True):
             with patch.object(rbenv, '_install_ruby_build',
                               return_value=True):
                 with patch.object(os.path, 'expanduser', return_value='A'):
                     self.assertTrue(rbenv.install())
Exemplo n.º 4
0
 def test_install(self):
     """
     Test for install Rbenv systemwide
     """
     with patch.object(rbenv, "_rbenv_path", return_value=True):
         with patch.object(rbenv, "_install_rbenv", return_value=True):
             with patch.object(rbenv,
                               "_install_ruby_build",
                               return_value=True):
                 with patch.object(os.path, "expanduser", return_value="A"):
                     self.assertTrue(rbenv.install())