Unit and functional testing git with RSpec

1 · Seth Vargo · Aug. 1, 2014, midnight
If you have ever written a Ruby application that interacts with git, you are probably already aware of the pains of testing such behavior. As if checking if git is installed at the proper version and catching all the crazy typos was not enough, git's algorithm's for calculating commit SHAs make functional testing quite cumbersome! Unit testing git with RSpec Unit testing git with RSpec has always been relatively easy. As you may recall, unit tests are all about message sending. Unit tests answ...