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

Values tracking #3

Open
valich opened this issue Sep 13, 2017 · 0 comments
Open

Values tracking #3

valich opened this issue Sep 13, 2017 · 0 comments
Assignees

Comments

@valich
Copy link
Collaborator

valich commented Sep 13, 2017

In several cases using just types to create contracts is just not enough. The example is FactoryGirl's mock class creation which returns objects of class derivable from symbol value by fixed algorithm, for example, underscore->camelcase conversion.

One could achieve such results by sending the values of some string/symbol type arguments along with their types. Unfortunately, doing so plainly must dramatically reduce the speed of arg-scanner execution (which is not great already).

The possible approach is to consider only the "short" values given as a separate parameter OR as an explicit hash value (required to deal with factory :admin, class: User do calls)

@ViugiNick ViugiNick self-assigned this Sep 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants