refactored resizer to use imagemagick, fixed some tests

This commit is contained in:
albert
2011-09-16 12:38:56 -04:00
parent fbc1fb1f51
commit a717134163
31 changed files with 69 additions and 1648 deletions

View File

@@ -13,16 +13,5 @@ class PixivProxyTest < ActiveSupport::TestCase
assert(first_tag[0] =~ /./)
assert(first_tag[1] =~ /tags\.php\?tag=/)
end
should "get a manga page" do
url ="http://img65.pixiv.net/img/kiyoringo/21755794_p2.png"
results = PixivProxy.get_single(url)
assert_equal("member.php?id=4015", results[:profile_url])
assert(results[:jp_tags].size > 0)
first_tag = results[:jp_tags][0]
assert_equal(2, first_tag.size)
assert(first_tag[0] =~ /./)
assert(first_tag[1] =~ /tags\.php\?tag=/)
end
end
end