aeolusproject/conductor — pull request #76 by jistr (2012-09-24 14:09:10+00:00)
Title: Refactoring of cucumber steps for API responses

Steps that could be used commonly in all cucumber features for API are
moved from provider_api_steps.rb to api_steps.rb.

There were some similar steps like:
'should receive OK message',
'should receive Bad Request error',
'should receive Not Found error'.

This commit makes these steps more DRY. There are just two steps now,
one for general messages (which checks just status code and content
type) and one for errors (which checks status code, content type and
presence of error message in the response body).

Scenarios affected by the step changes are updated accordingly.

Some scenarios included steps like 'should receive Provider Not Found
error'. After this commit, only 'should receive Not Found error' variant
is used to prevent misguiding the reader. ('Should receive Provider Not
Found error' looked like it performed some expectations related
specifically to Provider, but in fact it didn't perform any such
expectations. It performed just the same expectations as 'should receive
Not Found error'.)