diff --git a/spec/heathen/processor_methods/libreoffice_spec.rb b/spec/heathen/processor_methods/libreoffice_spec.rb index ce7df2e..8d18b8c 100644 --- a/spec/heathen/processor_methods/libreoffice_spec.rb +++ b/spec/heathen/processor_methods/libreoffice_spec.rb @@ -55,7 +55,7 @@ def new_job content it 'from OO word' do new_job oo_word_content @processor.libreoffice format: 'msoffice' - expect(ms_mime_types).to include(@job.content.mime_type) + expect(ms_word_mime_types).to include(@job.content.mime_type) end it 'from OO spreadsheet' do new_job oo_spreadsheet_content diff --git a/spec/helpers/mime_types.rb b/spec/helpers/mime_types.rb index fbe4745..163f2f9 100644 --- a/spec/helpers/mime_types.rb +++ b/spec/helpers/mime_types.rb @@ -1,4 +1,4 @@ -def ms_mime_types +def ms_word_mime_types ['application/vnd.openxmlformats-officedocument.wordprocessingml.document; charset=binary', 'application/zip; charset=binary'] end diff --git a/spec/integration/standard_tasks_spec.rb b/spec/integration/standard_tasks_spec.rb index 6ae7f7e..21619b3 100644 --- a/spec/integration/standard_tasks_spec.rb +++ b/spec/integration/standard_tasks_spec.rb @@ -90,7 +90,7 @@ it 'runs' do content = fixture('heathen/ooword.odt').read new_content = converter.convert 'msoffice', content - expect(ms_mime_types).to include(new_content.mime_type) + expect(ms_word_mime_types).to include(new_content.mime_type) end end @@ -106,7 +106,7 @@ it 'runs' do content = fixture('heathen/ooword.odt').read new_content = converter.convert 'doc', content - expect(ms_mime_types).to include(new_content.mime_type) + expect(ms_word_mime_types).to include(new_content.mime_type) end end end