Skip to content

Commit

Permalink
unlink before closing block
Browse files Browse the repository at this point in the history
  • Loading branch information
kmuto committed Aug 18, 2024
1 parent 738b81e commit cb1429f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/test_epubmaker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -955,6 +955,7 @@ def test_verify_target_images
epubmaker.producer.contents << ReVIEW::EPUBMaker::Content.new(file: 'style.css')
File.write(File.join(tmpdir, 'style.css'), 'div { background-image: url("images/bg.jpg")}')
epubmaker.verify_target_images(tmpdir)
File.unlink(File.join(tmpdir, 'ch01.html'), File.join(tmpdir, 'style.css'))

expect = %w[images/bg.jpg images/ch01.png images/cover.png]
assert_equal expect, epubmaker.config['epubmaker']['force_include_images']
Expand Down

0 comments on commit cb1429f

Please sign in to comment.