Show view need page after creating a need.
Fix tests now Maslow shows the need view after creation
Set i18n 'enforce locale' option
Merge pull request #50 from alphagov/enforce-locale

Set i18n 'enforce locale' option
Avoid testing routing configuration in functional tests
Unit test checks need is persisted and has an id
Merge pull request #48 from alphagov/consistent-create-update-behaviour

Consistent create/update behaviour
Merge remote-tracking branch 'origin/master' into refactor-read-only-need-attributes

Conflicts:
	app/models/need.rb
Simplify assigning attributes from the API

This refactors the Need model so that, when we are initializing a Need
from an API response (ie. when the 'existing' argument is true), we now
filter the attributes so that only the writable fields are passed into
the update method. This prevents the ArgumentError exception from being
raised. We maintain the old behaviour when the need is being created or
updated so that invalid form fields will continue to raise an exception.

This also splits apart the 'assign_and_filter_values' method into two
separate methods which have a clearer intent and are no longer
destructive to their provided arguments.

- 'assign_read_only_attributes' assigns the instance variables for the
  attributes we consider "read only" from the API.
- 'filtered_attributes' slices the provided hash to only return keys
  present in the FIELDS constant.

I've moved around a few comments and added more comments around the
initialize method.
Merge pull request #49 from alphagov/refactor-read-only-need-attributes

Refactor handling read-only fields in Need model
Merge remote-tracking branch 'origin/master' into generic-needs