method

share_examples_for

Importance_1
RSpec latest stable (1.3.1) - 0 notes - Class: Spec::Extensions::Main

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (1.1.4) is shown here.

These similar methods exist in 1.3.1:

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.