def test_do_with_ruby(self): ''' Test for execute a ruby command with rbenv's shims using a specific ruby version. ''' with patch.object(rbenv, 'do', return_value='A'): self.assertEqual(rbenv.do_with_ruby('ruby', 'cmdline'), 'A')
def test_do_with_ruby(self): """ Test for execute a ruby command with rbenv's shims using a specific ruby version. """ with patch.object(rbenv, "do", return_value="A"): self.assertEqual(rbenv.do_with_ruby("ruby", "cmdline"), "A")