model_2_factory-rails
Factory model class generator for rails model class.
Description
Generate factory model class from rails active record class for rails-rspec test code.
Prerequisites
Require following gem to be included in your gem file:
- factory_girl-rails
factory_girl-rails
Installing
Add this line to your application's Gemfile:
gem 'model_2_factory-rails'
And then execute:
$ bundle
Or install it globally in your system:
$ gem install model_2_factory-rails
Usage
To generate factory class for your existing model class
$ bundle exec factory_gen your_model_name
Contributing
Bug reports and pull requests are welcome on GitHub at model_2_factory-rails repository. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
Authors
- Indrajit Roy - Initial work - eendroroy
See also the list of contributors who participated in this project.
License
This project is licensed under the MIT License - see the LICENSE.md file for details