implementing shared examples on static_pages_spec.rb