Refactors PagesController#create and adds more and better specs.