Combining find_or_create with rspec and factory_girl
I like find_or_create a lot, and factory_girl is one of my favorites :) So during my specs, I’d like to create some factories in case they didn’t exist already.
Well you should really not do this too often, because hitting the database and then again slows down your tests alot.
Short URL for this post: http://tmblr.co/ZGfIHy18uR7M