Giter VIP home page Giter VIP logo

Comments (17)

turadg avatar turadg commented on May 18, 2024

Sounds like the rspec/autorun problem? burke/zeus#180

spring rspec spec works perfectly for me running Ruby 1.9.3, Rails 3.2.11, Rspec 2.12.0 and FactoryGirl 4.1.0.

from spring.

Govinda-Fichtner avatar Govinda-Fichtner commented on May 18, 2024

Even after removing rspec/autorun I have the same errors....
But it is good to hear that the combination can run without problems... :-)

from spring.

julien-duponchelle avatar julien-duponchelle commented on May 18, 2024

We use without problems:
gem 'rails', '3.2.11'
gem 'rspec-rails', '2.11.0'
gem 'factory_girl_rails', '3.2'

Not tested with last version of rspec and factorygirl

from spring.

senny avatar senny commented on May 18, 2024

any progress on this one? We are running spring with factory_girl and rspec without any problems on multiple applications. I think the issue is directly related to your code. Can you post a sample app to reproduce?

from spring.

jonleighton avatar jonleighton commented on May 18, 2024

Please reopen if you have more info about this issue.

from spring.

ssinghi avatar ssinghi commented on May 18, 2024

I am also getting this issue using factory_girl (4.1.0). I think it has something to do with overriden factory girl associations not serializing properly.

from spring.

mtylty avatar mtylty commented on May 18, 2024

I'm having the exact same problem with factory_girl 4.2

from spring.

Lordnibbler avatar Lordnibbler commented on May 18, 2024

+1

from spring.

Lordnibbler avatar Lordnibbler commented on May 18, 2024

any updates on this?

from spring.

cainlevy avatar cainlevy commented on May 18, 2024

Fixed by adding Spring.after_fork{ FactoryGirl.reload } to my config/spring.rb.

Spring 0.0.10
FactoryGirl 4.1.0
Rails 3.2.14
Ruby 1.9.3

from spring.

c-lliope avatar c-lliope commented on May 18, 2024

Fixed by adding Spring.after_fork{ FactoryGirl.reload } to my config/spring.rb.

👍 works for me too. Thanks!

from spring.

Lordnibbler avatar Lordnibbler commented on May 18, 2024

@cainlevy this fix does not work on Factorygirl 4.2.0, but does work on 4.1.0

from spring.

tjgfernandes avatar tjgfernandes commented on May 18, 2024

Fixed by adding Spring.after_fork{ FactoryGirl.reload } to my config/spring.rb.

👍 Thanks!

from spring.

iwiznia avatar iwiznia commented on May 18, 2024

@Lordnibbler It worked for me...
FactoryGirl 4.2.0.
Spring 1.1.0
Rails 4.0.2

from spring.

jalada avatar jalada commented on May 18, 2024

Thanks @cainlevy ! 😄

from spring.

sarcx avatar sarcx commented on May 18, 2024

Nice :)

from spring.

petervandenabeele avatar petervandenabeele commented on May 18, 2024

This is fixed since version v4.4.1 of factory_girl_rails (Feb 2014) see thoughtbot/factory_bot_rails#121

from spring.

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.