Sha256: b43a1a510fcb35e3b6f01ffd18820ca4e9ef0e18560a898979d45cb7235ca961
Contents?: true
Size: 622 Bytes
Versions: 4
Compression:
Stored size: 622 Bytes
Contents
require_relative '../../spec_helper' require_relative '../../../lib/reek/examiner' require_relative '../../../lib/reek/report/report' RSpec.describe Reek::Report::HTMLReport do let(:instance) { Reek::Report::HTMLReport.new } context 'with an empty source' do let(:examiner) { Reek::Examiner.new('') } before do instance.add_examiner examiner end it 'has the text 0 total warnings' do instance.show file = File.expand_path('../../../../reek.html', __FILE__) text = File.read(file) File.delete(file) expect(text).to include('0 total warnings') end end end
Version data entries
4 entries across 4 versions & 1 rubygems