Factorisation of the title check for pages_controller_spec