Sha256: 73feae9f9fb17de80d6ad79783470a7d3552e145e5641a6aa65d9c2e4f6ebfef

Contents?: true

Size: 867 Bytes

Versions: 17

Compression:

Stored size: 867 Bytes

Contents

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

RSpec.describe Reek::Report do
  describe '.report_class' do
    it 'returns the correct class' do
      expect(described_class.report_class(:text)).to eq Reek::Report::TextReport
    end
  end

  describe '.location_formatter' do
    it 'returns the correct class' do
      expect(described_class.location_formatter(:plain)).to eq Reek::Report::Formatter::BlankLocationFormatter
    end
  end

  describe '.heading_formatter' do
    it 'returns the correct class' do
      expect(described_class.heading_formatter(:quiet)).to eq Reek::Report::Formatter::QuietHeadingFormatter
    end
  end

  describe '.warning_formatter_class' do
    it 'returns the correct class' do
      expect(described_class.warning_formatter_class(:simple)).to eq Reek::Report::Formatter::SimpleWarningFormatter
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
reek-4.8.2 spec/reek/report_spec.rb
reek-4.8.1 spec/reek/report_spec.rb
reek-4.8.0 spec/reek/report_spec.rb
reek-4.7.3 spec/reek/report_spec.rb
reek-4.7.2 spec/reek/report_spec.rb
reek-4.7.1 spec/reek/report_spec.rb
reek-4.7.0 spec/reek/report_spec.rb
reek-4.6.2 spec/reek/report_spec.rb
reek-4.6.1 spec/reek/report_spec.rb
reek-4.6.0 spec/reek/report_spec.rb
reek-4.5.6 spec/reek/report_spec.rb
reek-4.5.5 spec/reek/report_spec.rb
reek-4.5.4 spec/reek/report_spec.rb
reek-4.5.3 spec/reek/report_spec.rb
reek-4.5.2 spec/reek/report_spec.rb
reek-4.5.1 spec/reek/report_spec.rb
reek-4.5.0 spec/reek/report_spec.rb