Skip to content

Commit

Permalink
remove test
Browse files Browse the repository at this point in the history
  • Loading branch information
kmuto committed Aug 18, 2024
1 parent 46f184b commit 923f5b0
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions test/test_epubmaker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -948,17 +948,17 @@ def test_copy_static_file
end
end

def test_verify_target_images
epubmaker_instance do |epubmaker, tmpdir|
epubmaker.config['epubmaker']['verify_target_images'] = true
epubmaker.config['coverimage'] = 'cover.png'

epubmaker.producer.contents << ReVIEW::EPUBMaker::Content.new(file: 'ch01.html', title: 'CH01', level: 1)
epubmaker.producer.contents << ReVIEW::EPUBMaker::Content.new(file: 'style.css')
epubmaker.verify_target_images(tmpdir)

expect = %w[images/bg.jpg images/ch01.png images/cover.png]
assert_equal expect, epubmaker.config['epubmaker']['force_include_images']
end
end
# def test_verify_target_images
# epubmaker_instance do |epubmaker, tmpdir|
# epubmaker.config['epubmaker']['verify_target_images'] = true
# epubmaker.config['coverimage'] = 'cover.png'
#
# epubmaker.producer.contents << ReVIEW::EPUBMaker::Content.new(file: 'ch01.html', title: 'CH01', level: 1)
# epubmaker.producer.contents << ReVIEW::EPUBMaker::Content.new(file: 'style.css')
# epubmaker.verify_target_images(tmpdir)
#
# expect = %w[images/bg.jpg images/ch01.png images/cover.png]
# assert_equal expect, epubmaker.config['epubmaker']['force_include_images']
# end
# end
end

0 comments on commit 923f5b0

Please sign in to comment.