refactor spec/requests/static_pages_spec.rb