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 || {}
|
||||
|
||||
if session.response_body =~ /Exception caught/ || session.response_body.blank?
|
||||
if session.response_body =~ /Exception caught/
|
||||
save_and_open
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue