Downgrade awesome_nested_set to 2.1.6

Updating OpenProject customisations for latest awesome_nested_set
beyond the scope of Rails 4 upgrade.

Signed-off-by: Alex Coles <alex@alexbcoles.com>
Update Enumeration scopes to use callable object

Signed-off-by: Alex Coles <alex@alexbcoles.com>
Change assert_include usages to assert_includes

Signed-off-by: Alex Coles <alex@alexbcoles.com>
Remove option passed to render_template matcher

Signed-off-by: Alex Coles <alex@alexbcoles.com>
[hack] Quick workaround for issue saving journals

    Validation failed: Version has already been taken

Signed-off-by: Alex Coles <alex@alexbcoles.com>
Fix WorkPackage for #select_all API change

 #select_all returns a ActiveRecord::Result.

Signed-off-by: Alex Coles <alex@alexbcoles.com>
Fix hash keys in QueriesController spec

Now uses a standard Hash rather than HashWithIndifferentAccess.

Signed-off-by: Alex Coles <alex@alexbcoles.com>
Fix hash keys in WorkPackagesController spec

Now uses a standard Hash rather than HashWithIndifferentAccess.

Signed-off-by: Alex Coles <alex@alexbcoles.com>