How do you load fixtures from specs as you would test?
eg. rake db:fixtures:load RAILS_ENV=development
How do you load fixtures from specs as you would test?
eg. rake db:fixtures:load RAILS_ENV=development
Do you want to load them in your controller? You can put
class MyController
fixtures :fixturename
end
-Corey
rake db:fixtures:load doesn’t work?
loads the test fixtures, instead of the spec fixtures directory.Does it
work
for you?
no, just database
I see, sorry. I misunderstood.
This is good to know.
-Corey
On Feb 1, 2008 5:03 AM, Stefan Magnus Landrø [email protected]
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs