renamed artsiteproxy to sources

This commit is contained in:
albert
2011-09-26 12:54:42 -04:00
parent 0e0f2af6ff
commit a1657366c1
13 changed files with 137 additions and 9 deletions

View File

@@ -5,9 +5,9 @@ require 'test_helper'
class PixivProxyTest < ActiveSupport::TestCase
context "The proxy" do
should "get a single post" do
proxy = ArtSiteProxies::Proxy.new("http://www.pixiv.net/member_illust.php?mode=medium&illust_id=9646484")
proxy = Sources::Site.new("http://www.pixiv.net/member_illust.php?mode=medium&illust_id=9646484")
assert_equal("member.php?id=4015", proxy.profile_url)
assert_equal("http://www.pixiv.net/member.php?id=4015", proxy.profile_url)
assert(proxy.tags.size > 0)
first_tag = proxy.tags.first
assert_equal(2, first_tag.size)