This looks like a really bad reimplementation of [RSpec Shared Examples](https://www.relishapp.com/rspec/rspec-core/v/2-14/docs/example-groups/shared-examples).   Why were they not suitable for this task?