Example #1
0
 def test_update(self):
     """
     Test for updates the current versions of Rbenv and Ruby-Build
     """
     with patch.object(rbenv, "_rbenv_path", return_value=True):
         with patch.object(rbenv, "_update_rbenv", return_value=True):
             with patch.object(rbenv, "_update_ruby_build", return_value=True):
                 with patch.object(os.path, "expanduser", return_value="A"):
                     self.assertTrue(rbenv.update())
Example #2
0
 def test_update(self):
     '''
     Test for updates the current versions of Rbenv and Ruby-Build
     '''
     with patch.object(rbenv, '_rbenv_path', return_value=True):
         with patch.object(rbenv, '_update_rbenv', return_value=True):
             with patch.object(rbenv, '_update_ruby_build',
                               return_value=True):
                 with patch.object(os.path, 'expanduser', return_value='A'):
                     self.assertTrue(rbenv.update())
Example #3
0
 def test_update(self):
     '''
     Test for updates the current versions of Rbenv and Ruby-Build
     '''
     with patch.object(rbenv, '_rbenv_path', return_value=True):
         with patch.object(rbenv, '_update_rbenv', return_value=True):
             with patch.object(rbenv, '_update_ruby_build',
                               return_value=True):
                 with patch.object(os.path, 'expanduser', return_value='A'):
                     self.assertTrue(rbenv.update())
Example #4
0
 def test_update(self):
     """
     Test for updates the current versions of Rbenv and Ruby-Build
     """
     with patch.object(rbenv, "_rbenv_path", return_value=True):
         with patch.object(rbenv, "_update_rbenv", return_value=True):
             with patch.object(rbenv,
                               "_update_ruby_build",
                               return_value=True):
                 with patch.object(os.path, "expanduser", return_value="A"):
                     self.assertTrue(rbenv.update())