Refactor the static_pages_spec.rb file