Sha256: d521020f43358a4d96f1abf4990273a4a559c3a1f62e2551dd51f3bb083f96ab

Contents?: true

Size: 470 Bytes

Versions: 5

Compression:

Stored size: 470 Bytes

Contents

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

include Reek
include Reek::Cli

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

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

5 entries across 5 versions & 1 rubygems

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