Skip to content

Commit

Permalink
More debug
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjfisher committed Feb 14, 2023
1 parent 13c0714 commit a3b33ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/puppet-lint/report/codeclimate.rb
Expand Up @@ -19,6 +19,7 @@ def self.write_report_file(problems, report_file)
next
end

pp message
issue = {
type: :issue,
check_name: message[:check],
Expand Down
1 change: 1 addition & 0 deletions spec/unit/puppet-lint/bin_spec.rb
Expand Up @@ -457,6 +457,7 @@ def initialize(args)

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

0 comments on commit a3b33ea

Please sign in to comment.