What is Oaken?
mainOaken is a data management tool for Rails development and test environments that combines the benefits of fixtures, factories, and seeds. It allows you to define your application's object graph using Ruby-based data scripts instead of YAML, providing a more readable and maintainable way to manage shared datasets.
Key benefits include:
- In Development: Provides a way to group data by scenario, reveal your domain model through sequential object graph descriptions, and use Ruby-based recipes for seeding
db/seeds.rb. - In Testing: Enables the reuse of development seed data in tests. Because Oaken seeds data before tests run and relies on Rails' transaction rollbacks, it maintains the speed of fixtures while offering the flexibility of Ruby.