Skip to content

Commit a3b33ea

Browse files
committed
More debug
1 parent 13c0714 commit a3b33ea

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

lib/puppet-lint/report/codeclimate.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ def self.write_report_file(problems, report_file)
1919
next
2020
end
2121

22+
pp message
2223
issue = {
2324
type: :issue,
2425
check_name: message[:check],

spec/unit/puppet-lint/bin_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,7 @@ def initialize(args)
457457

458458
it 'creates a code climate report' do
459459
expect(bin.exitstatus).to eq(1)
460+
expect(bin.stdout).to eq('DEBUG')
460461
expect(File.open(report_file.path).read).to eq(File.open('spec/fixtures/test/reports/code_climate.json').read)
461462
expect(FileUtils.compare_file(report_file.path, 'spec/fixtures/test/reports/code_climate.json')).to be_truthy
462463
end

0 commit comments

Comments
 (0)