Don't open blank pages in the browser (Path from Kyle Hargraves)
This commit is contained in:
parent
cfdd66784e
commit
580e6950b6
@ -261,7 +261,7 @@ module Webrat
|
|||||||
|
|
||||||
session.send "#{method}", url, data || {}
|
session.send "#{method}", url, data || {}
|
||||||
|
|
||||||
if session.response_body =~ /Exception caught/ || session.response_body.blank?
|
if session.response_body =~ /Exception caught/
|
||||||
save_and_open
|
save_and_open
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user