fix tests

This commit is contained in:
r888888888
2016-05-27 15:34:55 -07:00
parent 2dfc6d92e4
commit 58aa5c6d66
98 changed files with 42782 additions and 71709 deletions

View File

@@ -45,6 +45,14 @@ class ActiveSupport::TestCase
def setup_vcr
@record = false
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)
end
# instead of trying to persist these across tests just clear it out every time
Cache.delete("pixiv-phpsessid")
Cache.delete("pixiv-papi-access-token")