art station: add tests for #4416.

This commit is contained in:
evazion
2020-04-21 00:32:52 -05:00
parent 4abff072b7
commit c6d096a15f

View File

@@ -150,5 +150,15 @@ module Sources
assert_nothing_raised { site.to_h }
end
end
should "work for artists with underscores in their name" do
site = Sources::Strategies.find("https://hosi_na.artstation.com/projects/3oEk3B")
assert_equal("hosi_na", site.artist_name)
end
should "work for artists with dashes in their name" do
site = Sources::Strategies.find("https://sa-dui.artstation.com/projects/DVERn")
assert_equal("sa-dui", site.artist_name)
end
end
end