Skip to content
This repository has been archived by the owner on Mar 24, 2020. It is now read-only.

Inheriting specifications #96

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open

Inheriting specifications #96

wants to merge 2 commits into from

Conversation

kagux
Copy link

@kagux kagux commented Jan 9, 2013

In case we have classes that share similar behavior, it would be nice to specify it only in one place. For example, if we have inherited classes. Connected to issue #88
I think the most natural way is to inherit the specification. To make it work we need a slight modification in the way the context of the example is determined. If we use declaring class of the method, then we incorrectly get parent class. So, first we try to get the class from specification. If it does not exist, we fallback to the class which declared the method.

Boris Mikhaylov added 2 commits January 9, 2013 18:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant