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