tomjadams / instinct-github-import

Automatically exported from code.google.com/p/instinct
0 stars 0 forks source link

@BeforeSpecification does not run if implemented in an abstract base class. #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  Create an abstract base class with a @BeforeSpecification method.
2. Extend the abstract base class from a context which has a @Specification
3. Run the specification. Now the @BeforeSpecification method is never invoked 
and any code you 
have in that block fails to run and makes the specification fail.

What is the expected output? What do you see instead?
Depends on what the @BeforeSpecification method is supposed to construct/do.

Please use labels and text to provide additional information.

Original issue reported on code.google.com by zed...@gmail.com on 3 Oct 2007 at 4:25

GoogleCodeExporter commented 9 years ago
A similar problem exists around adding a specification to an abstract base 
class:

1. Create an abstract base class with @Specification method
2. Extend the abstract base class from a context
3. Run the context. The @Specification method defined in the abstract base 
class is never run

Original comment by zed...@gmail.com on 3 Oct 2007 at 5:00

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Both cases have been fixed and checked in.

Original comment by zed...@gmail.com on 5 Dec 2007 at 5:22