Coder Social home page Coder Social logo

Comments (4)

joshuaclayton avatar joshuaclayton commented on June 15, 2024

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.

josevalim avatar josevalim commented on June 15, 2024

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.

joshuaclayton avatar joshuaclayton commented on June 15, 2024

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.

seivan avatar seivan commented on June 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.