Merge pull request #3198 from evazion/feat-tumblr-dtextify-artcomm
Tumblr: convert artist commentaries from HTML to DText (#3184)
This commit is contained in:
@@ -35,14 +35,11 @@ module Sources
|
||||
should "get the dtext-ified commentary" do
|
||||
desc = <<-EOS.strip_heredoc.chomp
|
||||
blah blah
|
||||
|
||||
"test link":[http://www.google.com]
|
||||
|
||||
|
||||
|
||||
h1. lol
|
||||
|
||||
|
||||
|
||||
|
||||
[b]blah[/b] [i]blah[/i] [u]blah[/u] [s]blah[/s]
|
||||
herp derp
|
||||
@@ -53,7 +50,6 @@ module Sources
|
||||
* two
|
||||
* three
|
||||
|
||||
|
||||
* one
|
||||
* two
|
||||
* three
|
||||
|
||||
@@ -92,8 +92,8 @@ module Sources
|
||||
|
||||
should "get the dtext-ified commentary" do
|
||||
desc = <<-EOS.strip_heredoc.chomp
|
||||
foo [b]bold[/b] [i]italics[/i] [s]strike[/s] red\r
|
||||
\r
|
||||
foo [b]bold[/b] [i]italics[/i] [s]strike[/s] red
|
||||
|
||||
http://nijie.info/view.php?id=218944
|
||||
EOS
|
||||
|
||||
|
||||
@@ -42,6 +42,26 @@ module Sources
|
||||
assert_equal(desc, @site.artist_commentary_desc)
|
||||
end
|
||||
|
||||
should "get the dtext-ified commentary" do
|
||||
desc = <<-EOS.strip_heredoc.chomp
|
||||
h2. header
|
||||
|
||||
plain [b]bold[/b] [i]italics[/i] [s]strike[/s]
|
||||
|
||||
* one
|
||||
* two
|
||||
|
||||
* one
|
||||
* two
|
||||
|
||||
[quote]quote[/quote]
|
||||
|
||||
"link":[http://www.google.com]
|
||||
EOS
|
||||
|
||||
assert_equal(desc, @site.dtext_artist_commentary_desc)
|
||||
end
|
||||
|
||||
should "get the image url" do
|
||||
assert_equal("http://data.tumblr.com/3bbfcbf075ddf969c996641b264086fd/tumblr_os2buiIOt51wsfqepo1_raw.png", @site.image_url)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user