Standardize on `shared_examples`.

`shared_examples_for` is being removed.
Address ruby warnings.