Added a subroutine to spec/requests/static_pages_spec.rb and replaced a lot of repeated code with it