Flowdock
method

share_examples_for

Importance_1
1.1.4 - Show latest stable - 0 notes - Class: Spec::Extensions::Main
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
Show source
Register or log in to add new notes.