Use it together
with share_examples_for like this:
share_examples_for"a shape"doit"should have a color"do# ...endit"should have a center point"do# ...endenddescribe"a circle"doit_should_behave_like"a shape"it"should be round"do# ...endend
share_examples_for"a shape"doit"should have a color"do@shape.color.should==:blackendenddescribe"a circle"dobefore(:all)do@shape=Circle.newendit_should_behave_like"a shape"end