Sha256: 742daebebc995ae9a27e009432f1ed3e7a46c36a272c7f0570ba46db52175774

Contents?: true

Size: 535 Bytes

Versions: 10

Compression:

Stored size: 535 Bytes

Contents

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

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

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

10 entries across 10 versions & 1 rubygems

Version Path
reek-3.3.1 spec/reek/report/yaml_report_spec.rb
reek-3.3.0 spec/reek/report/yaml_report_spec.rb
reek-3.2.1 spec/reek/report/yaml_report_spec.rb
reek-3.2 spec/reek/report/yaml_report_spec.rb
reek-3.1 spec/reek/report/yaml_report_spec.rb
reek-3.0.4 spec/reek/report/yaml_report_spec.rb
reek-3.0.3 spec/reek/report/yaml_report_spec.rb
reek-3.0.2 spec/reek/report/yaml_report_spec.rb
reek-3.0.1 spec/reek/report/yaml_report_spec.rb
reek-3.0.0 spec/reek/report/yaml_report_spec.rb