synctv/swagger_yard — pull request #2 by tpitale (2014-04-18 21:01:53+00:00)
Title: WIP: Specs

I've started working on specs for swagger_yard before I start refactoring and adding features.

The approach has two parts. Loading/running a fixture rails application with controllers through "integration" tests. Comparing the results of JSON output with static expected JSON.

Ideally, some of these tests will go away after some time, but for the moment, this is my smoke test to not destroy any existing functionality.

Part 2 is the unit testing. As new features, or particular fixes are added, I'll be attempting to test those changes in isolation. I've already identified a handful of things that need fixing. I'll only add those fixes after I've added the appropriate tests.

Questions:

1. is this an acceptable direction?
2. is there something else I should be covering in the specs?
3. are you okay with me going off and fixing things/how much involvement would you like to have?