Skip to content
Browse files

Merge pull request #734 from nightscape/patch-1

Return the real class on Capybara::Driver::Node#inspect.
  • Loading branch information...
2 parents 6cb1b12 + 001a442 commit d76987f1213dea6d9dca59f655479f931cac6b49 @jnicklas committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/capybara/driver/node.rb
View
4 lib/capybara/driver/node.rb
@@ -65,9 +65,9 @@ def trigger(event)
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

0 comments on commit d76987f

Please sign in to comment.
Something went wrong with that request. Please try again.