From c6d096a15f85224657065cb7f043f59255ec5e9f Mon Sep 17 00:00:00 2001 From: evazion Date: Tue, 21 Apr 2020 00:32:52 -0500 Subject: [PATCH] art station: add tests for #4416. --- test/unit/sources/art_station_test.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/unit/sources/art_station_test.rb b/test/unit/sources/art_station_test.rb index ba694c5a9..f0dec1b7b 100644 --- a/test/unit/sources/art_station_test.rb +++ b/test/unit/sources/art_station_test.rb @@ -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