Beispiel #1
0
 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')
Beispiel #2
0
 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")
Beispiel #3
0
 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")
Beispiel #4
0
 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')