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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
A69beacfae43beb20f6324141f9c4e5b?d=identicon&s=25 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
into
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.