method

share_examples_for

Importance_1
RSpec latest stable (1.3.1) - 0 notes - Class: Spec::DSL::Main
share_examples_for(*args, &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.