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())
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())