Add in attachment state
Block publishing on attachments virus scanning

Add in tests for AttachmentData #virus_status

Also change the helper #simulate_virus_scan to move the files so that
the path reported by carrierwave is correct

display the number of attachments in the tab
rename assert_raises to assert_raise

assert_raises is an alias of assert_raise.

Will be deprecated in 1.9, and removed in 2.0.
Allow the virus scanning to be skipped in some cases

for example with the attachment repairer
Move links from _metadata partial into new partial

This is in preparation for including the metadata links in the footer.
Initial document_footer_meta on publications
Add change notes to document footer
Fix document footer padding on mobile
Add document meta footer to consultations
Add document meta footer locales
Fix metadata in strong tag not being bold
Style show other content link correctly in footer metadata

This is styled the same as the other links, but might be too prominent. Perhaps it could be normal weight / smaller.
Include document footer on all other document types

Except policies – see https://www.pivotaltracker.com/story/show/49121251
Add document_metadata helper to display document metadata at top and bottom

This was primarily to get an array of metadata into the template so they could be
displayed in the footer as a list instead of a sentence.

It also means the logic of generating metadata has been pulled out into a helper
which can be unit tested.

Some other helpers have been modified to return arrays instead of sentences. Maybe
these don't make sense to be in helpers any longer, I'm not sure.
Add document metadata footer to policies
Fix and simplify document_metadata tests

Tests used to use dom_ids on links to check metadata was working correctly,
but this is brittle and assumes metadata appears once on a page. I have removed
all ids and classes directly on links, and created a consistent set of classes
on the <dd> element which can be used for testing, CSS, etc.
Fix some cucumber tests which specify metadata ids
Add in new trait for attachment without scanning or virus checking
Need to specify the clean path in the clean check
scope simulate virus scanner to the file