diff --git a/spec/heathen/processor_methods/htmltotext_spec.rb b/spec/heathen/processor_methods/htmltotext_spec.rb index c43e35c..7dbfd7d 100644 --- a/spec/heathen/processor_methods/htmltotext_spec.rb +++ b/spec/heathen/processor_methods/htmltotext_spec.rb @@ -5,7 +5,7 @@ RSpec.describe Heathen::Processor do let(:content) { fixture('heathen/quickfox.html').read } let(:job) { Heathen::Job.new 'foo', content, 'en' } - let(:processor) { described_class.new job: job, logger: Logger.new($stderr) } + let(:processor) { described_class.new job: job, logger: spec_logger } after do processor.clean_up diff --git a/spec/heathen/processor_methods/pdftotext_spec.rb b/spec/heathen/processor_methods/pdftotext_spec.rb index e8b32c2..a48484d 100644 --- a/spec/heathen/processor_methods/pdftotext_spec.rb +++ b/spec/heathen/processor_methods/pdftotext_spec.rb @@ -5,7 +5,7 @@ RSpec.describe Heathen::Processor do let(:content) { fixture('heathen/quickfox.pdf').read } let(:job) { Heathen::Job.new 'foo', content, 'en' } - let(:processor) { described_class.new job: job, logger: Logger.new($stderr) } + let(:processor) { described_class.new job: job, logger: spec_logger } after do processor.clean_up