Skip to content

Commit

Permalink
add test to ensure no absolute paths appear in codeclimate output
Browse files Browse the repository at this point in the history
  • Loading branch information
RubyBrewsday committed Nov 15, 2022
1 parent cc26ebd commit fa96a97
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/tests/report_generation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def test_codeclimate_sanity
report = @@report.to_codeclimate

assert report.is_a? String
refute report.include? Dir.pwd # Ensure output does not include absolute paths
end

def test_csv_sanity
Expand Down

0 comments on commit fa96a97

Please sign in to comment.