# What happens when "rake test"?

**URL:** <https://www.ruby-forum.com/t/what-happens-when-rake-test/88120>\
**Category:** Rails\
**Created:** [March 8, 2007, 10:35am UTC](https://www.ruby-forum.com/t/what-happens-when-rake-test/88120 "2007-03-08T10:35:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kevin\_Yang](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/a88e4f/32.png) [@Kevin\_Yang](https://www.ruby-forum.com/u/Kevin_Yang)\
**Post date:** [March 8, 2007, 10:35am UTC](https://www.ruby-forum.com/t/what-happens-when-rake-test/88120/1 "2007-03-08T10:35:23Z")

</div>

Hello,  
I meet a problem which become a stopper. When I run “rake test” .  
then there always comes the error :

D:/InstantRails/ruby/lib/ruby/1.8/csv.rb:11: CSV is not a class  
(TypeError)

my enviroment is Rails1.2.1+Ruby1.8.4. The same issue can be  
reproduced in the same code in Rails1.2.2+Ruby1.8.5

currently i can comments this then all works.

c:\ruby\lib\ruby\gems\1.8\gems\activerecord-1.15.2\lib\active\_record  
\fixtures.rb (line 3)  
require ‘csv’

but what i think this is a damage to the project.

what I am interested is , what happens when i run “rake test”? i  
would like to debug into the source code to see what is going on and  
why there is such bug.

thanks

kevin
