zachmokahn/HanGituP — pull request #4 by zachmokahn (2013-12-22 18:12:50+00:00)
Title: organize spec folder

I extrapolated data from the spec files into a helper folder in order to
make the tests read more explicity.

I added mocks for the JSON data that the HTTP party would be recieving
from the github API and mocks for the format that the HTTParty will
present to us after it parses the JSON.

I abstracted the before each block from the github parser spec because
the blocks aren't relevent to what is actually being tested in the spec,
but they are necessary to the process.

I opted to move the beforeach block ito a specific parser helper file
instead of the spec helper because its not necessary to call them for
every spec, just the specs involving the github parser class.