opdemand/deis — pull request #496 by nathansamson (2014-01-28 13:09:39+00:00)
Title: Fix for 480

I Know the tests fail, but please read this whole message and help me out here :)

Also it doesn't scale the web apps anymore (on initial Push)
if no web entry exists in the Procfile.

This commit makes a lot of tests Cry, since none of them have
a Procfile configured in the Build, and as such scaling doesn't
work.

I am not sure what the best way is to actually get the (fake) Procfile descriptions in the test cases.

I have the feeling that
* we are missing Model tests (we have a lot of View tests, but setting up the environment also goes via Views which is not really practical in every case)
* This is related to the fact that Models are not self-contained. In some case it are the views implementing the triggers to get the Database structure in valid state (Very Bad Behaviour if you ask me)
* We are also missing good basic fixtures or better a method like FactoryGirl (https://github.com/thoughtbot/factory_girl) to easily setup some datastructures needed for the Tests.

I am a Rails person myself, and I am not sure what are the best way forwards to create the situation here.