diff --git a/app/logical/sources/strategies/tumblr.rb b/app/logical/sources/strategies/tumblr.rb index 8a7d9e7e9..426772474 100644 --- a/app/logical/sources/strategies/tumblr.rb +++ b/app/logical/sources/strategies/tumblr.rb @@ -35,6 +35,8 @@ module Sources::Strategies case post[:type] when "text", "link" post[:title] + when "answer" + post[:question] else nil end @@ -48,6 +50,8 @@ module Sources::Strategies post[:description] when "photo", "video" post[:caption] + when "answer" + post[:answer] else nil end diff --git a/test/unit/sources/tumblr_test.rb b/test/unit/sources/tumblr_test.rb index b1d811d5b..b17b91abc 100644 --- a/test/unit/sources/tumblr_test.rb +++ b/test/unit/sources/tumblr_test.rb @@ -22,7 +22,7 @@ module Sources end should "get the commentary" do - desc = <<-EOS.strip_heredoc.chomp + desc = <<~EOS.chomp
plain bold italics strike