Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for abstract traits and mocking of trait-methods #32

Merged
merged 5 commits into from
Aug 14, 2015

Conversation

alexispeter
Copy link
Contributor

fixes #28
depends on tomaszdurka/codegenerator#13

Uses aliases to retain access to the original implementation of trait-methods

@alexispeter
Copy link
Contributor Author

please have a look @tomaszdurka

@tomaszdurka
Copy link
Owner

Looks great!
I would maybe just change prefix of the aliases methods to something like _mockaTraitAlias_ to point user in case he sees this in exception. _mock_ could lead him to anything, wdyt?

@tomaszdurka
Copy link
Owner

You still need some adjustments in tests.

@tomaszdurka
Copy link
Owner

Looks good!

tomaszdurka added a commit that referenced this pull request Aug 14, 2015
Add support for abstract traits and mocking of trait-methods
@tomaszdurka tomaszdurka merged commit 0efbbaa into tomaszdurka:master Aug 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot mock trait with abstract methods
2 participants