tumblr: don't fail when api key isn't configured.

This commit is contained in:
evazion
2018-10-09 11:57:23 -05:00
parent 8aed1e19b9
commit 4c55c809b0
2 changed files with 6 additions and 3 deletions

View File

@@ -3,8 +3,7 @@ require 'test_helper'
module Sources
class TumblrTest < ActiveSupport::TestCase
def setup
super
skip "Tumblr key is not configured" unless Danbooru.config.tumblr_consumer_key
skip "Tumblr key is not configured" unless Sources::Strategies::Tumblr.enabled?
end
context "The source for a 'http://*.tumblr.com/post/*' photo post with a single image" do