Sha256: 6c06bf7a1f27bec0bab4439994838e59a0721e6be3fab8b4998ae53cb63fafdc
Contents?: true
Size: 630 Bytes
Versions: 1
Compression:
Stored size: 630 Bytes
Contents
require_relative '../../spec_helper' require_relative '../../../lib/reek/examiner' require_relative '../../../lib/reek/cli/report/report' describe Reek::CLI::Report::HTMLReport do let(:instance) { Reek::CLI::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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
reek-2.1.0 | spec/reek/cli/html_report_spec.rb |