Comments (4)
Jose, could you elaborate a bit?
https://github.com/thoughtbot/factory_girl_rails/blob/master/lib/factory_girl_rails/railtie.rb#L1
Thanks!
from factory_bot_rails.
Thanks @joshuaclayton , I haven't seen this line. I just opened this issue because I am getting this error:
workshop/spec/factories/all.rb:3: uninitialized constant Factory (NameError)
from /Users/jose/.rvm/gems/ree-1.8.7-2010.02/gems/factory_girl-1.3.3/lib/factory_girl/factory.rb:314:in `find_definitions'
from /Users/jose/.rvm/gems/ree-1.8.7-2010.02/gems/factory_girl-1.3.3/lib/factory_girl/factory.rb:313:in `each'
from /Users/jose/.rvm/gems/ree-1.8.7-2010.02/gems/factory_girl-1.3.3/lib/factory_girl/factory.rb:313:in `find_definitions'
from /Users/jose/.rvm/gems/ree-1.8.7-2010.02/gems/factory_girl-1.3.3/lib/factory_girl/factory.rb:308:in `each'
from /Users/jose/.rvm/gems/ree-1.8.7-2010.02/gems/factory_girl-1.3.3/lib/factory_girl/factory.rb:308:in `find_definitions'
from /Users/jose/.rvm/gems/ree-1.8.7-2010.02/gems/factory_girl_rails-1.0.1/lib/factory_girl_rails/railtie.rb:11
Seems to be an error on my end then. I will handle it here. Sorry for the buggy report!
from factory_bot_rails.
No worries - I'd just double-check the gemfile and all the other basic stuff first. If you're still having trouble, reopen the ticket and we'll try and figure it out. Thanks!
from factory_bot_rails.
Hmm.. could you reflect the getting started document in the factory_girl repo to suggest rc 1.1
We used that syntax and got uninitialized constant FactoryGirl errors without realizing it only worked on Rc 1.1
from factory_bot_rails.
Related Issues (20)
- Reloading Issue Triggering Resolved Rails Bug HOT 16
- [Feature Request] Install Generator HOT 4
- Issues with custom error message translations HOT 21
- incompatible marshal file format (can't be read) HOT 4
- Factory not registered: "credit_card" HOT 13
- 5.0.x does not play well with Spring HOT 5
- factory_bot_rails 6.0 checklist HOT 2
- Invalid DateTime.now field on factory creation
- Multiple Tests Fail on Vanilla `bundle exec rake` HOT 2
- Model generation ignores --force-plural HOT 3
- Rails ignoring factory HOT 2
- Install fewer gems on Travis HOT 1
- Incompatibility with Rails 6.0.3? HOT 2
- Perform DB migration will make factory_bot looking for methods in the wrong place HOT 2
- Successive associations issue when migrating to rails 6.1 HOT 3
- Switch from Travis CI to GitHub Actions
- Duplicate factories problem HOT 5
- Automatically populate attributes and types when generating factories for existing models HOT 2
- Cannot create Factory with multiple traits got (ArgumentError Exception: wrong number of arguments (given 1, expected 0)) Ruby 3.0, Rails 6.1.72, factory_bot_rails 6.1.0 HOT 2
- Dead link in CONTRIBUTING.md HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from factory_bot_rails.