You may want to take a look at https://www.relishapp.com/rspec/rspec-core/v/2-0/docs/example-groups/shared-example-group