lib/innate/mock.rb in manveru-innate-2009.04 vs lib/innate/mock.rb in manveru-innate-2009.04.01

- old
+ new

@@ -37,11 +37,12 @@ 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 + if cookie = response['Set-Cookie'] + @cookie = cookie + end response end end end