# File lib/innate/mock.rb, line 38 def extract_cookie(method, path, hash = {}) hash['HTTP_COOKIE'] ||= @cookie if @cookie response = Mock::mock(method, path, hash) cookie = response['Set-Cookie'] @cookie = cookie if cookie response end