Skip to content

Commit

Permalink
Fix rubocop offenses
Browse files Browse the repository at this point in the history
  • Loading branch information
etagwerker committed Mar 2, 2024
1 parent 43397a6 commit 0e68d81
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/lib/rubycritic/generators/html_report_test.rb
Expand Up @@ -17,13 +17,16 @@
sample_files = Dir['test/samples/**/*.rb']
create_analysed_modules_collection
generate_report

assert File.file? 'test/samples/overview.html'
overview = File.read 'test/samples/overview.html'
assert overview.match? '<title>Ruby Critic - Home</title>'

assert_match overview, '<title>Ruby Critic - Home</title>'
assert File.file? 'test/samples/code_index.html'
code_index = File.read 'test/samples/code_index.html'

sample_files.each do |filename|
assert code_index.match? filename.sub('.rb', '.html')
assert_match code_index, filename.sub('.rb', '.html')
end
end
end
Expand Down

0 comments on commit 0e68d81

Please sign in to comment.