@@ -289,11 +289,6 @@ def test_reel_other_format
289289 end
290290 end
291291
292- # Not sure why this is here, it's not a link that works
293- # def test_another_link
294- # Forki::Post.lookup("https://www.facebook.com/manuelbuffa84/posts/pfbid02uqbifnKoRhW6Z9T1EBNXAnH5uyn9khWjPtfUYZPrLfkdjxtpTqpj521doA6Aa51ol")
295- # end
296-
297292 def test_another_link_2
298293 post = Forki ::Post . lookup ( "https://www.facebook.com/bonifacemusavulivh/posts/1800353787146024/" ) . first
299294
@@ -363,14 +358,6 @@ def test_a_url_that_seems_to_fail_2
363358 assert File . size ( post . first . image_file ) > 1000
364359 end
365360
366- # NOTE: This does fail, because it's gone'
367- # def test_a_url_that_seems_to_fail_3
368- # post = Forki::Post.lookup("https://www.facebook.com/share/p/19JjhuYDjy/")
369- # assert_not_nil(post)
370-
371- # assert File.size(post.first.image_file) > 1000
372- # end
373-
374361 def test_a_video_without_text_works
375362 post = Forki ::Post . lookup ( "https://www.facebook.com/watch/live/?ref=watch_permalink&v=535737772684504" )
376363 assert_not_nil ( post )
@@ -502,4 +489,19 @@ def test_multiple_media_works
502489 assert_not_nil ( post . created_at )
503490 end
504491 end
492+
493+ def test_a_reel_with_text_works
494+ posts = Forki ::Post . lookup ( "https://www.facebook.com/watch/?v=1264952764841420&ref=sharing" )
495+ assert_not_nil ( posts )
496+
497+ posts . each do |post |
498+ post . video_files . each do |image |
499+ assert File . size ( image ) > 1000
500+ end
501+
502+ assert File . size ( post . user . profile_image_file ) > 1000
503+ assert_not_nil ( post . created_at )
504+ assert !post . text . blank?
505+ end
506+ end
505507end
0 commit comments