Refactor out custom has_title RSpec matcher for testing on page.source