TestingWithFrank/Frank — pull request #15 by sgleadow (2013-12-27 07:41:19+00:00)
Title: Add better error messages for selector matchers

This adds better error messages to the be_true and be_false rspec matchers in the element exists Frank helpers.

I've been increasingly calling the frank helpers directly from my page models rather than using the built in cucumber steps, and I wasn't getting any useful error messages when elements didn't match, just true != false which doesn't give much context. I tried to add more useful messages that would say whether an element was found or not, and what the selector was.