1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

Move evaluate script to driver

This commit is contained in:
CJ Kihlbom and Jonas Nicklas and Jonas Nicklas 2009-12-14 15:30:29 +01:00 committed by Jonas Nicklas
parent 7358deb5d6
commit 3eea2c2639
2 changed files with 5 additions and 5 deletions

View file

@ -11,6 +11,10 @@ class Capybara::Driver::Base
raise "Not implemented"
end
def evaluate_script(script)
raise Capybara::NotSupportedByDriverError
end
def wait?
false
end

View file

@ -171,11 +171,7 @@ module Capybara
end
def evaluate_script(script)
begin
driver.evaluate_script(script)
rescue NoMethodError
raise NotSupportedByDriverError
end
driver.evaluate_script(script)
end
private