I don’t do TDD yet, but I want to be able to create ‘dummy data’ in my database.
As far as I understand it, Factory Girl is a perfect gem to do this.
Looking through the docs, there seems to be a tight coupling with RSpec and other testing frameworks.
Can I use Factory Girl to populate dummy data without needing to write tests?
Thanks.
Absolutely. Just include
factory_girl_railsoutside your test group in your Gemfile, and then you can happily use it anywhere.I wouldn’t recommend using it in your app outside development or test, though.