Sha256: 07bf8cba45fa482d283d256ed8ad4a8486b4350aafa82b5e44949bc174c89dbb

Contents?: true

Size: 575 Bytes

Versions: 5

Compression:

Stored size: 575 Bytes

Contents

require 'spec_helper'
require 'reek/examiner'
require 'reek/cli/report/report'

include Reek
include Reek::Cli

describe Report::HtmlReport do
  let(:instance) { Report::HtmlReport.new }

  context 'with an empty source' do
    let(:examiner) { 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

5 entries across 5 versions & 1 rubygems

Version Path
reek-2.0.4 spec/reek/cli/html_report_spec.rb
reek-2.0.3 spec/reek/cli/html_report_spec.rb
reek-2.0.2 spec/reek/cli/html_report_spec.rb
reek-2.0.1 spec/reek/cli/html_report_spec.rb
reek-2.0.0 spec/reek/cli/html_report_spec.rb