lib/watir/matches.rb in commonwatir-2.0.4 vs lib/watir/matches.rb in commonwatir-3.0.0.rc1

- old
+ new

@@ -13,5 +13,11 @@ class Integer def matches(x) return self == x end end + +class Object + def matches(x) + raise TypeError, "#{self.class} is not supported as a locator" + end +end