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

Add simple description to exception

Add description to NotSupportedByDriverError exception to help tracking during debugging
This commit is contained in:
randoum 2013-03-09 11:50:27 +08:00
parent ca4ec140e3
commit 44be4455bf

View file

@ -70,21 +70,21 @@ module Capybara
end
def path
raise NotSupportedByDriverError
raise NotSupportedByDriverError, 'Capybara::Driver::Node#path'
end
def trigger(event)
raise NotSupportedByDriverError
raise NotSupportedByDriverError, 'Capybara::Driver::Node#trigger'
end
def inspect
%(#<#{self.class} tag="#{tag_name}" path="#{path}">)
rescue NotSupportedByDriverError
rescue NotSupportedByDriverError, 'Capybara::Driver::Node#inspect'
%(#<#{self.class} tag="#{tag_name}">)
end
def ==(other)
raise NotSupportedByDriverError
raise NotSupportedByDriverError, 'Capybara::Driver::Node#=='
end
end
end