1
0
Fork 0
mirror of https://github.com/teampoltergeist/poltergeist.git synced 2022-11-09 12:05:00 -05:00

added code to raise an exception when the inspector is used without properly launched driver

This commit is contained in:
Dmitriy Nesteryuk 2012-07-24 23:37:07 +03:00
parent 72e5d2d276
commit 8aa20a51df

View file

@ -129,8 +129,13 @@ module Capybara::Poltergeist
end
def debug
inspector.open
pause
if @options[:inspector]
inspector.open
pause
else
raise Error, "To use the remote debugging, you have to launch the driver " \
"with `:inspector => true` configuration option"
end
end
def pause