Refactor spec/requests/static_pages_spec.rb