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?
on 2012-08-01 03:31
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.