# Cattr\_accessor not found for testing?

**URL:** <https://www.ruby-forum.com/t/cattr-accessor-not-found-for-testing/145616>\
**Category:** Rails\
**Created:** [August 12, 2008, 5:42am UTC](https://www.ruby-forum.com/t/cattr-accessor-not-found-for-testing/145616 "2008-08-12T05:42:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mfb82](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e274bd/32.png) [@mfb82](https://www.ruby-forum.com/u/mfb82)\
**Post date:** [August 12, 2008, 5:42am UTC](https://www.ruby-forum.com/t/cattr-accessor-not-found-for-testing/145616/1 "2008-08-12T05:42:12Z")

</div>

Hi,

I have installed rails 2.0.2 on Linux (Fedora).

Everything works fine. but i have this problem when perform: rake  
test:units

i get this error:  
undefined method `cattr\_accessor’ for FileMonitor:Class (NoMethodError)

even this class works fine in the real application, i still get this  
error!!

I tried to re-install rails but still the same problem happens.  
I searched in the internet and found some one suggesting: export  
RUBYOPT=-rubygems  
I tried it but still it is not working.

any help is appreciated,  
Mohammad
