Sha256: 3499243c763f2951f5a691a4816581ed345eeb39fe6c165b60876177b872f80e

Contents?: true

Size: 467 Bytes

Versions: 18

Compression:

Stored size: 467 Bytes

Contents

require_relative '../../spec_helper'
require_lib 'reek/examiner'
require_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
      expect { instance.show }.to output(/0 total warnings/).to_stdout
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
reek-4.4.1 spec/reek/report/html_report_spec.rb
reek-4.4.0 spec/reek/report/html_report_spec.rb
reek-4.3.0 spec/reek/report/html_report_spec.rb
reek-4.2.5 spec/reek/report/html_report_spec.rb
reek-4.2.4 spec/reek/report/html_report_spec.rb
reek-4.2.3 spec/reek/report/html_report_spec.rb
reek-4.2.2 spec/reek/report/html_report_spec.rb
reek-4.2.1 spec/reek/report/html_report_spec.rb
reek-4.2.0 spec/reek/report/html_report_spec.rb
reek-4.1.1 spec/reek/report/html_report_spec.rb
reek-4.1.0 spec/reek/report/html_report_spec.rb
reek-4.0.5 spec/reek/report/html_report_spec.rb
reek-4.0.4 spec/reek/report/html_report_spec.rb
reek-4.0.3 spec/reek/report/html_report_spec.rb
reek-4.0.2 spec/reek/report/html_report_spec.rb
reek-4.0.1 spec/reek/report/html_report_spec.rb
reek-4.0.0 spec/reek/report/html_report_spec.rb
reek-4.0.0.pre1 spec/reek/report/html_report_spec.rb