update tests

This commit is contained in:
r888888888
2015-05-28 13:32:36 -07:00
parent 2ddc93723c
commit 66dd4f072e
89 changed files with 65157 additions and 58437 deletions

View File

@@ -126,7 +126,11 @@ module Sources
end.click_button
end
session = mech.cookie_jar.cookies.select{|c| c.name == "user_session"}.first
Cache.put("nico-seiga-session", session.value, 1.month) if session
if session
Cache.put("nico-seiga-session", session.value, 1.month)
else
raise "Session not found"
end
end
# This cookie needs to be set to allow viewing of adult works