Actions
Defect #30811
closed"rake db:fixtures:load" does not work
Defect #30811:
"rake db:fixtures:load" does not work
Resolution:
Fixed
Affected version:
Description
Rails provides a rake task db:fixtures:load to load fixtures to the database. Fixture data is useful to prepare Redmine for testing. But, in Redmine, the task fails due to test/fixtures/configuration/*.yml.
$ bin/rake db:fixtures:load rake aborted! ActiveRecord::Fixture::FormatError: fixture key is not a hash: /Users/maeda/redmines/redmine-trunk/test/fixtures/configuration/default.yml, keys: ["production", "development", "test"]
This is because db:fixtures:load assumes that all files which have .yml extension are fixtures. Actually test/fixtures/configuration/*.yml are not fixtures but files used to test lib/redmine/configuration.rb.
To run db:fixtures:load without errors, I suggest changing the extension of those files from .yml to another extension such as .yml.txt.
Files
Actions