Sha256: 7e5aa38cb6c4bcb30d4ae40ecd6154c138a36479e7ab7e2165bb0b5bbfdc687f

Contents?: true

Size: 836 Bytes

Versions: 1

Compression:

Stored size: 836 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::BlankLocationFormatter
    end
  end

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
reek-4.4.2 spec/reek/report_spec.rb