Enhance `action` request stage.
* Build the specs for the `action` request stage.
* Added an extra check to complain when a controller returns not a Response or a String

Signed-off-by: Josep M. Blanquer <blanquer@rightscale.com>
Merge pull request #38 from rightscale/testing_request_stages_action

Enhance `action` request stage.
Beef up the validation error class
* Build tests for it
* Make sure we set the content type (Fixes #39)

Signed-off-by: Josep M. Blanquer <blanquer@rightscale.com>
Test that the validation error template is registered.
Relaxed ActiveSupport version dependency (from 4 to >=3 )

Signed-off-by: Josep M. Blanquer <blanquer@rightscale.com>
Remove `actions` and `action` methods from controller concern.

These methods return definition actions anyway, so it seems clearer
to have the code follow up the definition object. That is: 
* ```ctrl.actions``` should now be ```ctrl.definition.actions```
* ```ctrl.action(:name)``` should now be ```ctrl.definition.actions[:name]```

This opens the door to define both design and controller in a single file/class
for quick tests.
Adapted the small parts of the code to access the actions the new way.

Signed-off-by: Josep M. Blanquer <blanquer@rightscale.com>
Merge pull request #40 from rightscale/remove_actions_methods_from_controller

Remove `actions` and `action` methods from controller concern.
Rework FileGroup to use Pathname.glob instead of Pathname#find.

Should close #13.

Signed-off-by: Dane Jensen <dane@rightscale.com>