4

I added an entry to the yml fixture for a model. Then rails console test. But the new record is not in the database.

How do you "update" the test database to access it in rails console?

Working in Rails 3.0.7, using built-in unit test.

Thanks.

B Seven
  • 44,484
  • 66
  • 240
  • 385

1 Answers1

6

I'd say:

bundle exec rake db:fixtures:load RAILS_ENV=test
apneadiving
  • 114,565
  • 26
  • 219
  • 213