test/curlyq_scrape_test.rb in curlyq-0.0.11 vs test/curlyq_scrape_test.rb in curlyq-0.0.12
- old
+ new
@@ -11,16 +11,16 @@
include CurlyQHelpers
def setup
@screenshot = File.join(File.dirname(__FILE__), 'screenshot_test')
FileUtils.rm_f("#{@screenshot}.pdf") if File.exist?("#{@screenshot}.pdf")
- FileUtils.rm_f('screenshot_test.png') if File.exist?("#{@screenshot}.png")
+ FileUtils.rm_f("#{@screenshot}.png") if File.exist?("#{@screenshot}.png")
FileUtils.rm_f("#{@screenshot}_full.png") if File.exist?("#{@screenshot}_full.png")
end
def teardown
FileUtils.rm_f("#{@screenshot}.pdf") if File.exist?("#{@screenshot}.pdf")
- FileUtils.rm_f('screenshot_test.png') if File.exist?("#{@screenshot}.png")
+ FileUtils.rm_f("#{@screenshot}.png") if File.exist?("#{@screenshot}.png")
FileUtils.rm_f("#{@screenshot}_full.png") if File.exist?("#{@screenshot}_full.png")
end
def test_scrape_firefox
result = curlyq('scrape', '-b', 'firefox', '-q', 'links[rel=me&content*=mastodon][0]', 'https://brettterpstra.com/2024/01/10/introducing-curlyq-a-pipeline-oriented-curl-helper/')