Sha256: c7e8556c3aa87c60c0ba9f14befff0e05d30952db0556b22870c7c7b36e9a9bf
Contents?: true
Size: 774 Bytes
Versions: 1
Compression:
Stored size: 774 Bytes
Contents
require_relative '../../spec_helper' require_lib 'reek/examiner' require_lib 'reek/report/report' RSpec.describe Reek::Report::XMLReport do let(:xml_report) { described_class.new } context 'empty source' do it 'prints empty checkstyle XML' do xml_report.add_examiner Reek::Examiner.new('') xml = "<?xml version='1.0'?>\n<checkstyle/>\n" expect { xml_report.show }.to output(xml).to_stdout end end context 'source with voliations' do it 'prints non-empty checkstyle XML' do xml_report.add_examiner Reek::Examiner.new(SMELLY_FILE) xml = SAMPLES_PATH.join('checkstyle.xml').read xml = xml.gsub(SMELLY_FILE.to_s, SMELLY_FILE.expand_path.to_s) expect { xml_report.show }.to output(xml).to_stdout end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
reek-4.4.2 | spec/reek/report/xml_report_spec.rb |