Ruby on Rails
Tuesday, July 31, 2012
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?
-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment