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

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?
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.