Sha256: ce3c7c75d2578a8fc429430a562e94bad0cc94cb771ee3d640b23bb9fb6b94fb

Contents?: true

Size: 463 Bytes

Versions: 37

Compression:

Stored size: 463 Bytes

Contents

require_relative '../../spec_helper'
require_lib 'reek/examiner'
require_lib 'reek/report/html_report'

RSpec.describe Reek::Report::HTMLReport do
  let(:instance) { described_class.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

37 entries across 35 versions & 2 rubygems

Version Path
reek-6.0.3 spec/reek/report/html_report_spec.rb
reek-6.0.2 spec/reek/report/html_report_spec.rb
reek-6.0.1 spec/reek/report/html_report_spec.rb
reek-6.0.0 spec/reek/report/html_report_spec.rb
reek-5.6.0 spec/reek/report/html_report_spec.rb
reek-5.5.0 spec/reek/report/html_report_spec.rb
reek-5.4.1 spec/reek/report/html_report_spec.rb
reek-5.4.0 spec/reek/report/html_report_spec.rb
reek-5.3.2 spec/reek/report/html_report_spec.rb
reek-5.3.1 spec/reek/report/html_report_spec.rb
reek-5.3.0 spec/reek/report/html_report_spec.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/spec/reek/report/html_report_spec.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/spec/reek/report/html_report_spec.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/spec/reek/report/html_report_spec.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/spec/reek/report/html_report_spec.rb
reek-5.2.0 spec/reek/report/html_report_spec.rb
reek-5.1.0 spec/reek/report/html_report_spec.rb
reek-5.0.2 spec/reek/report/html_report_spec.rb
reek-5.0.1 spec/reek/report/html_report_spec.rb
reek-5.0.0 spec/reek/report/html_report_spec.rb