Refactored static_pages_spec.rb