RubyGems Navigation menu

smulube-fixture_dependencies 1.2.4

fixture_dependencies is an advanced fixture loader for ActiveRecord and Sequel, allowing the loading of models from YAML fixtures, along with their entire dependency graph. It has the following features: - Fixtures specify association names instead of foreign keys - Support both Sequel and ActiveRecord - Supports many_to_one/belongs_to, one_to_many/has_many, many_to_many/has_and_belongs_to_many, and has_one associations - Loads a fixture's dependency graph in such a manner that foreign key constraints aren't violated - Has a very simple API (FixtureDependencies.load(:model__fixture)) - Handles almost all cyclic dependencies - Includes Rails and Sequel test helpers for Test::Unit (and a Sequel test helper for RSpec) that load fixtures for every test inside a transaction, so fixture data is never left in your database - Adds dynamic fixtures (similar to ActiveRecord) with ERb.

Gemfile:
= 複製 已複製

安裝:
=

版本列表:

  1. 1.2.4 - August 10, 2014 (11.5 KB)

作者:

  • Jeremy Evans, Sam Mulube

SHA 256 總和檢查碼:

d7059a3dfbd44cc6c3e601b6b3469cd619229cb8fa3f6920426cb08c185ec21b

總下載次數 3,292

這個版本 3,292

授權:

Ruby 版本需求: >= 0

相關連結: