refactor source pixiv test

refactor pixiv download tests
refactor upload test
refactor nico seiga test
refactor twitter tests
This commit is contained in:
r888888888
2016-09-27 16:22:54 -07:00
parent 4fa2741ed2
commit fc7afd44ea
134 changed files with 66158 additions and 70930 deletions

View File

@@ -43,14 +43,10 @@ class ActiveSupport::TestCase
include UploadTestMethods
def setup_vcr
@record = false
@vcr_record_option = :none
if @record
# %x(find test/fixtures/vcr_cassettes -name '*pixiv*' -delete)
# %x(find test/fixtures/vcr_cassettes -name '*ugoira*' -delete)
# %x(find test/fixtures/vcr_cassettes -name '*seiga*' -delete)
# %x(find test/fixtures/vcr_cassettes -name '*twitter*' -delete)
# %x(find test/fixtures/vcr_cassettes -name '*artist*' -delete)
@vcr_record_option = :once
end
# instead of trying to persist these across tests just clear it out every time