remove usage of vcr cassettes; delete unused fixtures; fix some broken unit tests

This commit is contained in:
Albert Yi
2016-12-28 15:43:52 -08:00
parent b2296cab70
commit 0ea7d78584
110 changed files with 182 additions and 113327 deletions

View File

@@ -2,20 +2,12 @@ require 'test_helper'
module Downloads
class DeviantArtTest < ActiveSupport::TestCase
def setup
super
@record = false
setup_vcr
end
context "a download for a deviant art html page" do
setup do
@source = "http://starbitt.deviantart.com/art/09271X-636962118"
@tempfile = Tempfile.new("danbooru-test")
@download = Downloads::File.new(@source, @tempfile.path)
VCR.use_cassette("downloads-deviant-art-test/html", :record => @vcr_record_option) do
@download.download!
end
@download.download!
end
should "set the html page as the source" do