Kill trailing whitespace in ruby files

This commit is contained in:
小太
2013-03-19 23:10:10 +11:00
parent c107f96cec
commit cba839ba76
319 changed files with 2710 additions and 2710 deletions

View File

@@ -10,19 +10,19 @@ module Sources
@site = Sources::Site.new("http://seiga.nicovideo.jp/seiga/im1464351?track=ranking")
@site.get
end
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

View File

@@ -1,7 +1,7 @@
# # encoding: UTF-8
#
#
# require 'test_helper'
#
#
# module Sources
# class PixaTest < ActiveSupport::TestCase
# context "The source site for pixa" do
@@ -9,26 +9,26 @@
# @site = Sources::Site.new("http://www.pixa.cc/illustrations/show/75575")
# @site.get
# end
#
#
# 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)
# assert(first_tag[0] =~ /./)
# end
#
#
# should "convert a page into a json representation" do
# assert_nothing_raised do
# @site.to_json

View File

@@ -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

View File

@@ -1,7 +1,7 @@
# # encoding: UTF-8
#
#
# require 'test_helper'
#
#
# module Sources
# class TinamiTest < ActiveSupport::TestCase
# context "The source site for tinami" do
@@ -10,23 +10,23 @@
# @site = Sources::Site.new("http://www.tinami.com/view/308311")
# @site.get
# end
#
#
# 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
#
#
# should "convert a page into a json representation" do
# assert_nothing_raised do
# @site.to_json