Check out shared examples: https://www.relishapp.com/rspec/rspec-core/docs/example-groups/shared-examples