Refactor static_pages_spec.rb