example(description=nil, options={}, backtrace=nil, &implementation)
public
Creates an instance of the current example group
class and adds it
to a collection of examples of the
current example group.
Show source
def example(description=nil, options={}, backtrace=nil, &implementation)
example_description = ExampleDescription.new(description, options, backtrace || caller(0)[1])
example_descriptions << example_description
example_implementations[example_description] = implementation || pending_implementation
example_description
end