diff --git a/test/unit/ip_geolocation_test.rb b/test/unit/ip_geolocation_test.rb index 8b30cbef3..a47a21e67 100644 --- a/test/unit/ip_geolocation_test.rb +++ b/test/unit/ip_geolocation_test.rb @@ -39,13 +39,13 @@ class IpGeolocationTest < ActiveSupport::TestCase assert_equal(28, @ip.network.prefix) assert_equal(false, @ip.is_proxy?) - assert_equal(49, @ip.latitude.round(0)) - assert_equal(2, @ip.longitude.round(0)) + assert_equal(44, @ip.latitude.round(0)) + assert_equal(4, @ip.longitude.round(0)) assert_equal("Free SAS", @ip.organization) assert_equal("Europe/Paris", @ip.time_zone) assert_equal("EU", @ip.continent) assert_equal("FR", @ip.country) - assert_equal("FR-IDF", @ip.region) + assert_equal("FR-OCC", @ip.region) #assert_equal("Argenteuil", @ip.city) assert_nil(@ip.carrier) end diff --git a/test/unit/sources/fanbox_test.rb b/test/unit/sources/fanbox_test.rb index 5d43978cb..afaed9560 100644 --- a/test/unit/sources/fanbox_test.rb +++ b/test/unit/sources/fanbox_test.rb @@ -109,9 +109,9 @@ module Sources context "A cover image" do should "still work" do - post = Sources::Strategies.find("https://pixiv.pximg.net/c/1620x580_90_a2_g5/fanbox/public/images/creator/1566167/cover/WPqKsvKVGRq4qUjKFAMi23Z5.jpeg") + post = Sources::Strategies.find("https://pixiv.pximg.net/c/1620x580_90_a2_g5/fanbox/public/images/creator/1566167/cover/QqxYtuWdy4XWQx1ZLIqr4wvA.jpeg") assert_nothing_raised { post.to_h } - assert_downloaded(276_301, post.image_url) + assert_downloaded(366_291, post.image_url) assert_equal("https://omu001.fanbox.cc", post.profile_url) assert_equal(post.profile_url, post.canonical_url) artist = FactoryBot.create(:artist, name: "omu", url_string: "https://omu001.fanbox.cc")