rubyforgood / playtime

Supporting children and families experiencing homelessness in Washington, DC. Live app - https://wishlist.playtimeproject.org Organization Website:
http://www.playtimeproject.org/
MIT License
89 stars 50 forks source link

Update specs to use FactoryBotRails #153

Closed leesharma closed 7 years ago

leesharma commented 7 years ago

We have a gem name change! The gem previously known as factory_girl_rails is now called factory_bot_rails (link).

This issue is to update to the new gem. Stealing from an in-progress change to their README:

Transitioning is a two step process:

  1. Replace factory_girl_rails with factory_bot_rails in your Gemfile and bundle install
  2. Rename all FactoryGirl to FactoryBot and factory_girl to factory_bot in your codebase.

This command will perform a FactoryGirl to FactoryBot rename within your spec/ directory:

ag -0l FactoryGirl spec | xargs -0 sed -i 's/FactoryGirl/FactoryBot/g'
K4sku commented 7 years ago

I will do it.

leesharma commented 7 years ago

@K4sku Thanks for the offer, but it looks like we already had a PR for this one. I'll be adding more issues periodically though (+ freeing up some stagnating ones); stay tuned! 🙂