guard / guard-spork

Guard::Spork automatically manage Spork DRb servers
https://rubygems.org/gems/guard-spork
MIT License
296 stars 58 forks source link

support for factorygirl #81

Closed alexch closed 11 years ago

alexch commented 12 years ago

When using FactoryGirl and Spork, you occasionally get errors like expected Account#12345 but got Account#67890 when a factory or model changes. guard-spork could fix this by adding spec/factories/** to its watchlist.

Or you could just use rerun's rake spork task instead :-)

thibaudgg commented 12 years ago

Yeah adding spec/factories/** to the guard-spork watch list is the way to go, but I am not sure that is something we need to add in the template because not everybody use FactoryGirl. Don't you think?

alexch commented 12 years ago

Yeah, but not everybody uses Cucumber or RSpec either, and you support them. It's just a question of how far you want to go.

I don't really care one way or the other, since I don't use Guard personally, but I did find this problem when using rerun + spork + factorygirl (and "fixed" it in rerun's README :-)).