rb2k/viddl-rb — pull request #14 by kl (2011-11-26 11:01:12+00:00)
Title: Changed test a little to make it run on Windows and made the test code more dry

The test's wouldn't run on Windows because you have to be explicit and use the ruby command when running bin/viddl-rb like this for example: `ruby bin/viddl-rb http://www.youtube.com/watch?v=CFw6s0TN3hY --url-only`

I changed all the tests to use the ruby command explicitly. I don't think this change will affect Linux/OSX but if it does then we could make an OS check in the test file and change it depending on the OS.

The second thing I did was to remove some of the duplication in the tests and extract it to a helper method.