I wonder if there\'s a way to load and/or use fixture in rails console. Actually, I\'d like to create a user from my fixture users.yml
to do some testing without ha
It's possible to specify an alternate fixture directory using the FIXTURES_DIR variable. The value should be relative to test/fixtures.
$ rake db:fixtures:load RAILS_ENV=test FIXTURES_DIR='../../spec/fixtures'
It's also possible to specify a limited set of fixtures
$ rake db:fixtures:load RAILS_ENV=test FIXTURES_DIR='../../spec/fixtures' FIXTURES=users,user_roles