A library for setting up Ruby objects as test data.
- factory-girl
- ruby
- thoughtbot
- rubygems
47,133 repositories indexed
1–5 of 5 · Most stars
A library for setting up Ruby objects as test data.
Strategies for cleaning databases in Ruby. Can be used to ensure a clean state for testing.
Fastest end-to-end CSV ingestion for Ruby (with C acceleration). SmarterCSV auto-detects formats, applies smart defaults, and returns Rails-ready hashes for seamless use with ActiveRecord, Sidekiq, parallel jobs, and S3 pipelines — even for messy user-uploaded real-world data.
Generate mocks from ActiveRecord models for unit tests that run fast because they don’t need to load Rails or a database.
Generate strings supplying a simple pattern. Perfect to be used in test data factories. Validate if a text fulfills a specific pattern. Also you can use regular expressions (Regexp) to generate strings: `/[a-z0-9]{2,5}\w+/.gen`. Generate words in English or Spanish.