diff --git a/test/unit/sources/nico_seiga_test.rb b/test/unit/sources/nico_seiga_test.rb index 22815ce52..414f3abf0 100644 --- a/test/unit/sources/nico_seiga_test.rb +++ b/test/unit/sources/nico_seiga_test.rb @@ -10,8 +10,19 @@ module Sources @site.get end - should "get a single post" do + should "get the profile" do assert_equal("http://seiga.nicovideo.jp/user/illust/20446930?target=seiga", @site.profile_url) + end + + should "get the artist name" do + assert_equal("rariemonn", @site.artist_name) + end + + should "get the image url" do + assert_equal("http://seiga.nicovideo.jp/image/source?id=1464351", @site.image_url) + end + + should "get the tags" do assert(@site.tags.size > 0) first_tag = @site.tags.first assert_equal(2, first_tag.size) diff --git a/test/unit/sources/pixa_test.rb b/test/unit/sources/pixa_test.rb index 3dc8145a4..34c776e1b 100644 --- a/test/unit/sources/pixa_test.rb +++ b/test/unit/sources/pixa_test.rb @@ -10,8 +10,19 @@ module Sources @site.get end - should "get a single post" do + should "get the profile" do assert_equal("http://www.pixa.cc/profiles/show/9191", @site.profile_url) + end + + should "get the artist name" do + assert_equal("air", @site.artist_name) + end + + should "get the image url" do + assert_equal("http://file0.pixa.cc/illustrations/34/cb/df/70/49/b4/52/2d/42/c6/middle/110910魔法少女のコピー.jpg?1315664621", @site.image_url) + end + + should "get the tags" do assert(@site.tags.size > 0) first_tag = @site.tags.first assert_equal(2, first_tag.size) diff --git a/test/unit/sources/pixiv_test.rb b/test/unit/sources/pixiv_test.rb index 4c970904f..5b705686d 100644 --- a/test/unit/sources/pixiv_test.rb +++ b/test/unit/sources/pixiv_test.rb @@ -10,8 +10,19 @@ module Sources @site.get end - should "get a single post" do + should "get the profile" do assert_equal("http://www.pixiv.net/member.php?id=4015", @site.profile_url) + end + + should "get the artist name" do + assert_equal("シビレ罠", @site.artist_name) + end + + should "get the image url" do + assert_equal("http://img01.pixiv.net/img/nisieda/9646484.jpg", @site.image_url) + end + + should "get the tags" do assert(@site.tags.size > 0) first_tag = @site.tags.first assert_equal(2, first_tag.size) diff --git a/test/unit/sources/tinami_test.rb b/test/unit/sources/tinami_test.rb index a1dae8f01..0f0d52066 100644 --- a/test/unit/sources/tinami_test.rb +++ b/test/unit/sources/tinami_test.rb @@ -11,10 +11,19 @@ module Sources @site.get end - should "get a single post" do + should "get the profile" do assert_equal("http://www.tinami.com/creator/profile/29399", @site.profile_url) + end + + should "get the artist name" do assert_match(/ROM/, @site.artist_name) + end + + should "get the image url" do assert_equal("http://img.tinami.com/illust2/img/336/4e80b9773c084.png", @site.image_url) + end + + should "get the tags" do assert(@site.tags.size > 0) end