Skip to content

Commit

Permalink
Fix browser.last_request/last_response failing on second request/resp…
Browse files Browse the repository at this point in the history
…onse pair
  • Loading branch information
assaf committed Dec 19, 2010
1 parent 63ee3e4 commit 215911d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/zombie/browser.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -346,16 +346,16 @@ class Browser
#
# Returns the last request sent by this browser. The object will have the
# properties url, method, headers, and if applicable, body.
@__defineGetter__ "last_request", -> trail[trail.length -1]?.request
@__defineGetter__ "last_request", -> trail[trail.length - 1]?.request
# ### browser.last_response => Object
#
# Returns the last response received by this browser. The object will have the
# properties status, headers and body. Long bodies may be truncated.
@__defineGetter__ "last_response", -> trail[trail.length -1]?.response
@__defineGetter__ "last_response", -> trail[trail.length - 1]?.response
# ### browser.last_error => Object
#
# Returns the last error received by this browser in lieu of response.
@__defineGetter__ "last_error", -> trail[trail.length -1]?.error
@__defineGetter__ "last_error", -> trail[trail.length - 1]?.error


exports.Browser = Browser

0 comments on commit 215911d

Please sign in to comment.