saltstack/salt — pull request #1194 by mnemonikk (2012-05-03 09:43:20+00:00)
Title: Add tests to rvm and gem module and state

Hi! I added some unit tests for the modules and states I wrote for rvm/gem integration. I had a look at the way other modules are already tested with integration tests, but I couldn't imagine how this could be a viable solution for testing the ruby installation procedure.

I used the mock library for mocking which would be a new dependency.

The testing code still needs some work, it's too hard to follow right now, so you probably shouldn't merge it right now. I just need some feedback if this is going into the right direction.

However, the tests helped me to fix some bugs already, maybe these fixes should go in independently. I would do another branch/pull request for that if getting the tests into a reasonable state takes too long.