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

Constant values assigned to non sudo primitives objects #72

Closed
zeisler opened this issue Jun 20, 2016 · 0 comments
Closed

Constant values assigned to non sudo primitives objects #72

zeisler opened this issue Jun 20, 2016 · 0 comments

Comments

@zeisler
Copy link
Owner

zeisler commented Jun 20, 2016

class UserMock < ActiveMocker::Base
  RELATION = #<User ...>
end

When values are sudo primitives objects calling #inspect results in syntacticly correct assignment, but in many cases calling #inspect will not result in a correct assignment.

Possible solution when it is not a string, a number, or other printable object then replace it with a string "ActiveMocker can not determine the value, if needed stub this const with a valid test value"

zeisler added a commit that referenced this issue Jun 27, 2016
* Constant values assigned to non sudo primitives objects
#72
zeisler added a commit that referenced this issue Jun 27, 2016
* Constant values assigned to non sudo primitives objects
#72
zeisler added a commit that referenced this issue Jun 27, 2016
Fix: Constant values assigned to non sudo primitives objects #72
@zeisler zeisler closed this as completed Jul 5, 2016
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

No branches or pull requests

1 participant