Update HTML attribute order in helper specs

Signed-off-by: Alex Coles <alex@alexbcoles.com>
always set current_user to nil

This will avoid AnymousUsers from being set in one spec and then that
same user being removed in the db but staying set in the class instance
variable.
adapt scope building to 4.0
rewrite scopes to avoid 'conditions'

'conditions don't seem to merge any more
replacing invalid locale in spec
replaces deprecated method
adapt spec to changed validation
adapt spec to actually rendered view
rewrite all work_package scopes
Update HTML attribute order in TextFormatting spec

Signed-off-by: Alex Coles <alex@alexbcoles.com>
Fix #format_activity_description double escaping

ActionView::Helpers::TextHelper#truncate now escapes by default.

Signed-off-by: Alex Coles <alex@alexbcoles.com>
Fix double escaping in TextFormatting

ActionView::Helpers::TextHelper#truncate now escapes by default.

Signed-off-by: Alex Coles <alex@alexbcoles.com>
Merge branch 'feature/rails4_fix_specs' into feature/rails4