tumblr commentaries: include asker's name in ask posts (#3586).
This commit is contained in:
@@ -36,7 +36,7 @@ module Sources::Strategies
|
||||
when "text", "link"
|
||||
post[:title]
|
||||
when "answer"
|
||||
post[:question]
|
||||
"#{post[:asking_name]} asked: #{post[:question]}"
|
||||
else
|
||||
nil
|
||||
end
|
||||
|
||||
@@ -172,7 +172,7 @@ module Sources
|
||||
end
|
||||
|
||||
should "get the commentary" do
|
||||
assert_equal("test ask", @site.artist_commentary_title)
|
||||
assert_equal("Anonymous asked: test ask", @site.artist_commentary_title)
|
||||
assert_match("test answer", @site.artist_commentary_desc)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user