Refactor Rspec for static pages