Simplify static pages spec with shared_examples_for.