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.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
postedAug 1, '12 at 1:30a
activeAug 1, '12 at 1:30a

1 user in discussion

Ekin Han: 1 post



site design / logo © 2022 Grokbase