refactoring static_pages_spec.rb