diff options
author | Gareth Rees <gareth@mysociety.org> | 2014-03-17 11:15:40 +0000 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2014-03-28 09:39:04 +0000 |
commit | d57ca2a22579df4c634d554989c0ee9e4ebb5165 (patch) | |
tree | e1d11c626cedf57373be95b6b1ec6ce4dc22ea30 /spec/spec_helper.rb | |
parent | 0adf9399cbef42054809479c8f1b64dad7bbf8ca (diff) |
Add AttachmentToHTML library
Extracts the attachment processing from FoiAttachment#body_to_html
AttachmentToHTML contains adapters which convert
- text/plain
- application/pdf
- application/rtf
Results are returned as an AttachmentHTML::HTML instance which contains
the raw HTML and other metadata about the conversion.
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index dc5a0d6eb..e391c97d3 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -13,6 +13,7 @@ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[ SimpleCov.start('rails') do add_filter 'commonlib' add_filter 'vendor/plugins' + add_filter 'lib/attachment_to_html' add_filter 'lib/strip_attributes' add_filter 'lib/has_tag_string' add_filter 'lib/acts_as_xapian' |