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:
= Copy to clipboard Copied!

install:
=

Versions:

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

Authors:

  • Jeremy Evans, Sam Mulube

SHA 256 checksum:

d7059a3dfbd44cc6c3e601b6b3469cd619229cb8fa3f6920426cb08c185ec21b

Total downloads 3,268

For this version 3,268

Licenses:

N/A

Required Ruby Version: >= 0

Links: