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

Return the real class on Capybara::Driver::Node#inspect.

This commit is contained in:
Martin Mauch 2012-06-21 14:26:33 +03:00
parent 6cb1b124d5
commit 001a44220a

View file

@ -65,9 +65,9 @@ module Capybara
end
def inspect
%(#<Capybara::Driver::Node tag="#{tag_name}" path="#{path}">)
%(#<#{self.class} tag="#{tag_name}" path="#{path}">)
rescue NotSupportedByDriverError
%(#<Capybara::Driver::Node tag="#{tag_name}">)
%(#<#{self.class} tag="#{tag_name}">)
end
end
end