Forum: Ruby on Rails Can not insert fixture data to db

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Ekin Han (Guest)
on 2012-08-01 03:31
(Received via mailing list)
hi all,

I am doing some unit tests on my own ror environment(Ubuntu 11.10, ruby
1.9.3, rails 3.2.4), but I found that the fixture data did not insert
the database.

test 'some test' do
  pp articles # I have an Article model
end #test

Then I type the command rake db:test:prepare and rake test:units, the
articles variable was en empty array and no exceptions raised.

Could you kindly tell me how can I fix this problem?
This topic is locked and can not be replied to.