From fc122cbc5a4e0af13d7c4199a132619a76712ed2 Mon Sep 17 00:00:00 2001 From: evazion Date: Sat, 24 Sep 2022 03:34:57 -0500 Subject: [PATCH] tests: fix broken tests. --- test/unit/ip_geolocation_test.rb | 2 +- test/unit/sources/plurk_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/ip_geolocation_test.rb b/test/unit/ip_geolocation_test.rb index 4d5c74d39..5e5fe3c63 100644 --- a/test/unit/ip_geolocation_test.rb +++ b/test/unit/ip_geolocation_test.rb @@ -68,7 +68,7 @@ class IpGeolocationTest < ActiveSupport::TestCase end should "work for a bogon IP" do - @ip = IpGeolocation.create_or_update!("103.10.192.0") + @ip = IpGeolocation.create_or_update!("198.51.100.1") assert_equal(true, @ip.is_proxy?) end end diff --git a/test/unit/sources/plurk_test.rb b/test/unit/sources/plurk_test.rb index 82d03d428..dfd6087e4 100644 --- a/test/unit/sources/plurk_test.rb +++ b/test/unit/sources/plurk_test.rb @@ -22,7 +22,7 @@ module Sources end should "get the artist name" do - assert_equal("紅眼兔", @post1.artist_name) + assert_equal("紅眼兔@姑且是個畫圖的", @post1.artist_name) assert_equal("redeyehare", @post1.tag_name) assert_equal("BOW99", @post4.tag_name) end