method
share_examples_for
RSpec latest stable (1.3.1)
-
0 notes -
Class: Spec::Extensions::Main
- 1.1.4 (0)
- 1.1.12
- 1.2.0
- 1.2.8
- 1.3.0
- 1.3.1
- What's this?
share_examples_for(name, &block)
public
Creates an example group that can be shared by other example groups
Examples
share_examples_for "All Editions" do it "all editions behaviour" ... end describe SmallEdition do it_should_behave_like "All Editions" it "should do small edition stuff" do ... end end