-
Notifications
You must be signed in to change notification settings - Fork 54
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
ruby2_0_0_compatibility.rb#required Breaks FactoryGirl on models that have a required
attribute.
#45
ruby2_0_0_compatibility.rb#required Breaks FactoryGirl on models that have a required
attribute.
#45
Comments
Found a workaround, though the underlying issue is still there. In my Factories, I replaced all instances of So an updated factory definition looks as follows:
|
I'm not really up in the ruby code at the moment and haven't had a chance to look at this yet - do you have any suggestions/proposals to fix this? I'm sure we'll get to this eventually but obviously suggestions (or, heh, best case pull requests I suppose) would help accelerate that timeline ;-) |
…oid interfering with other libraries
I've got a PR that should fix this without modifying any generated code. As noted in the PR, the scope of this bug isn't just compatibility with FactoryBot. The |
Hi there,
Trying to integrate the asana API client into a project I am working on. Simply adding the gem to my Gemfile and bundling breaks my test suite, because I have factories that create models with a
required
attribute, and the the#required
method inruby-asana/lib/asana/ruby2_0_0_compatibility.rb
interferes.Stack Trace (note line 4):
To quickly reproduce, create a model with a boolean
required
attribute in a rails project that usesFactoryGirl
, and create a simple Factory for it, then try to runrspec
:Is there a way I can work around this?
Thanks!
┆Issue is synchronized with this Asana task
The text was updated successfully, but these errors were encountered: