lib/innate/mock.rb in manveru-innate-2009.03.24 vs lib/innate/mock.rb in manveru-innate-2009.04
- old
+ new
@@ -37,12 +37,11 @@
def extract_cookie(method, path, hash = {})
hash['HTTP_COOKIE'] ||= @cookie if @cookie
response = Mock::mock(method, path, hash)
- if cookie = response['Set-Cookie']
- @cookie = cookie
- end
+ cookie = response['Set-Cookie']
+ @cookie = cookie if cookie
response
end
end
end