Synesso / instinct

Automatically exported from code.google.com/p/instinct

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow specification specific before and after methods

GoogleCodeExporter opened this issue · comments

Add before spec & after spec methods that are tied only to a particular
specification. This would allow specification specific cleanup. Consider
whether this or creating a new context for the spec(s) is more appropriate.
The context of this request is cleanup activities, that don't need to be
within the body of the spec.

See the RSpec example:

before(:each) do
 p "hello"
end

before(:mySpecMethod) do
  p "hello"
end

Original issue reported on code.google.com by tomjad...@gmail.com on 23 Oct 2007 at 4:58

Original comment by tomjad...@gmail.com on 15 Aug 2008 at 6:21

  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect