Kill trailing whitespace in ruby files
This commit is contained in:
@@ -9,19 +9,19 @@ module Sources
|
||||
@site = Sources::Site.new("http://www.pixiv.net/member_illust.php?mode=big&illust_id=9646484")
|
||||
@site.get
|
||||
end
|
||||
|
||||
|
||||
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://i1.pixiv.net/img01/img/nisieda/9646484.jpg", @site.image_url)
|
||||
end
|
||||
|
||||
|
||||
should "get the tags" do
|
||||
assert(@site.tags.size > 0)
|
||||
first_tag = @site.tags.first
|
||||
@@ -29,7 +29,7 @@ module Sources
|
||||
assert(first_tag[0] =~ /./)
|
||||
assert(first_tag[1] =~ /search\.php/)
|
||||
end
|
||||
|
||||
|
||||
should "convert a page into a json representation" do
|
||||
assert_nothing_raised do
|
||||
@site.to_json
|
||||
|
||||
Reference in New Issue
Block a user