require_relative '../../spec_helper' require_relative '../../../lib/reek/examiner' require_relative '../../../lib/reek/report/report' require_relative '../../../lib/reek/report/formatter' RSpec.describe Reek::Report::YAMLReport do let(:instance) { Reek::Report::YAMLReport.new } context 'empty source' do let(:examiner) { Reek::Examiner.new('') } before do instance.add_examiner examiner end it 'prints empty yaml' do expect { instance.show }.to output(/^--- \[\]\n.*$/).to_stdout end end end