Sha256: 47b22c3f70993630a1806aee57b29a48bc726464362e66eae6b512b804579b25

Contents?: true

Size: 458 Bytes

Versions: 4

Compression:

Stored size: 458 Bytes

Contents

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

describe Reek::Cli::Report::JsonReport do
  let(:instance) { Reek::Cli::Report::JsonReport.new }

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

    before do
      instance.add_examiner examiner
    end

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

Version data entries

4 entries across 4 versions & 1 rubygems

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