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

FactoryGirl lose the "0" when converting #317

Open
BlackPrincess opened this issue Apr 14, 2016 · 2 comments
Open

FactoryGirl lose the "0" when converting #317

BlackPrincess opened this issue Apr 14, 2016 · 2 comments
Labels

Comments

@BlackPrincess
Copy link
Member

val user = FactoryGirl(User).withAttributes('os -> "0001", 'user -> "true").create()
user.os should equal("0001") // actual 1
user.user should equal("true") // actual TRUE
BlackPrincess added a commit to BlackPrincess/skinny-framework that referenced this issue Apr 14, 2016
@seratch
Copy link
Member

seratch commented Apr 15, 2016

Sorry for late reply. All the attributes of the User class are String but skinny's FactoryGirl library should be able to provide non-String values too. I understand your issue but your fix won't be fine for other use cases.

@seratch seratch added the bug label Apr 15, 2016
@BlackPrincess
Copy link
Member Author

I see 😄

BlackPrincess added a commit to BlackPrincess/skinny-framework that referenced this issue May 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants