Sha256: cfb86296acb59472a07dda6cf2a9ed12474eddead75b10c6d4b7bb217124e4b7

Contents?: true

Size: 527 Bytes

Versions: 10

Compression:

Stored size: 527 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::JSONReport do
  let(:instance) { Reek::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

10 entries across 10 versions & 1 rubygems

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