aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/fixture_set
Commit message (Collapse)AuthorAgeFilesLines
* provide file name for fixture ERBDennis Ushakov2016-03-301-0/+6
|
* Merge pull request #20574 from repinel/fix-db-fixtures-loadYves Senn2015-09-301-0/+12
|\ | | | | | | | | | | | | Allow fixtures YAML files to set the model class in the file itself Conflicts: activerecord/CHANGELOG.md
| * Allow fixtures YAML files to set the model class in the file itselfRoque Pinel2015-09-111-0/+10
|/ | | | | | | | Currently, `set_fixture_class` is only available using the `TestFixtures` concern and it is ignored for `rake db:fixtures:load`. Using the correct model class, it is possible for the fixture load to also load the associations from the YAML files (e.g., `:belongs_to` and `:has_many`).
* Introduce a context for rendering fixtures ERB.Victor Costan2013-12-031-0/+55
| | | | | | | | | | Fixture files are passed through an ERB renderer before being read as YAML. The rendering is currently done in the context of the main object, so method definitons leak into other fixtures, and there is no clean place to define fixture helpers. After this commit, the ERB renderer will use a new subclass of ActiveRecord::FixtureSet.context_class each time a fixture is rendered.
* Move/rename files to follow naming conventionsAlexey Muranov2012-10-071-0/+83