Sha256: a77eec4a17f00f96260f6d4fe6e1f78a14c826885a0e498407386e9671ce25c4

Contents?: true

Size: 564 Bytes

Versions: 2

Compression:

Stored size: 564 Bytes

Contents

require_relative '../../spec_helper'
require_relative '../../../lib/reek/core/examiner'
require_relative '../../../lib/reek/cli/report/report'
require_relative '../../../lib/reek/cli/report/formatter'

RSpec.describe Reek::CLI::Report::YAMLReport do
  let(:instance) { Reek::CLI::Report::YAMLReport.new }

  context 'empty source' do
    let(:examiner) { Reek::Core::Examiner.new('') }

    before do
      instance.add_examiner examiner
    end

    it 'prints empty yaml' do
      expect { instance.show }.to output(/^--- \[\]\n.*$/).to_stdout
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
reek-2.2.1 spec/reek/cli/yaml_report_spec.rb
reek-2.2.0 spec/reek/cli/yaml_report_spec.rb