lib/rutl/utilities.rb in rutl-0.1.3 vs lib/rutl/utilities.rb in rutl-0.1.4

- old
+ new

@@ -32,10 +32,11 @@ caller(1..1).first end def page?(checkme) checkme.ancestors.include?(BasePage) - rescue # BUGBUG: Didn't have time to find all the things to rescue yet. + rescue NoMethodError + # This isn't a even a class. It's no page! false end def raise_if_not_page(page) raise "NOT A PAGE: #{page}. Ancestors: #{page.ancestors}" unless page?(page)