Coder Social home page Coder Social logo

Comments (5)

h0jeZvgoxFepBQ2C avatar h0jeZvgoxFepBQ2C commented on June 18, 2024

Could you tell me how you fixed it? It doesnt work for me...

# Tried this:
gem 'factory_girl_rails', :git => 'git://github.com/thoughtbot/factory_girl_rails.git'
gem 'factory_girl', :git => 'git://github.com/thoughtbot/factory_girl.git'


user@pns-201-086 ~/Desktop/website$ bundle install
Updating git://github.com/thoughtbot/factory_girl.git
Fetching source index for http://rubygems.org/
Bundler could not find compatible versions for gem "factory_girl":
  In Gemfile:
    factory_girl_rails depends on
      factory_girl (~> 1.3)

    factory_girl (2.0.0.beta1)



# NEXT TRY WITH:
gem 'factory_girl_rails', :git => 'git://github.com/thoughtbot/factory_girl_rails.git'
gem 'factory_girl'


user@pns-201-086 ~/Desktop/website$ bundle install
Updating git://github.com/thoughtbot/factory_girl.git
Fetching source index for http://rubygems.org/
... all ok

user@pns-201-086 ~/Desktop/website$ rake cucumber FEATURE=features/manage_member_sites.feature
(in /Users/user/Desktop/website)
rake aborted!
undefined method `definition_file_paths=' for FactoryGirl:Module

(See full trace by running task with --trace)

from factory_bot_rails.

davidsulc avatar davidsulc commented on June 18, 2024

Yeah, in a new project, simply adding factory_girl to the Gemfile didn't fix the issue.

However, if you add the specific revisions I used, it seems to work:
gem 'factory_girl', :git => 'git://github.com/thoughtbot/factory_girl.git', :branch => '7c649b2c85ecc05ee74a1b869a2b5d3a626d59be'
gem 'factory_girl_rails', :git => 'git://github.com/thoughtbot/factory_girl_rails.git', :branch => '6e523f0ed79d988c2c0068059f557e47e1e23e83'

Does this (temporarily) fix the issue for you?

from factory_bot_rails.

timd avatar timd commented on June 18, 2024

FWIW, I had the same issue with undefined 'definition_file_paths': it was resolved by adding the following to the Gemfile:

gem 'factory_girl_rails', '1.0'

from factory_bot_rails.

astjohn avatar astjohn commented on June 18, 2024

To get it to work, I had to use the branch mentioned above for factory_girl:

gem "factory_girl", :git => 'git://github.com/thoughtbot/factory_girl.git', :branch => '7c649b2c85ecc05ee74a1b869a2b5d3a626d59be'
gem 'factory_girl_rails', ">= 1.0", :git => "git://github.com/thoughtbot/factory_girl_rails.git"

from factory_bot_rails.

jferris avatar jferris commented on June 18, 2024

This should be fixed now, since the prerelease gems and master branches of both projects are in sync.

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.