tests: fix broken tests.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user