# Little help with autotest required please

**URL:** <https://www.ruby-forum.com/t/little-help-with-autotest-required-please/149829>\
**Category:** Ruby\
**Created:** [September 30, 2008, 11:15am UTC](https://www.ruby-forum.com/t/little-help-with-autotest-required-please/149829 "2008-09-30T11:15:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zouplaz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/a4c791/32.png) [@Zouplaz](https://www.ruby-forum.com/u/Zouplaz)\
**Post date:** [September 30, 2008, 11:15am UTC](https://www.ruby-forum.com/t/little-help-with-autotest-required-please/149829/1 "2008-09-30T11:15:43Z")

</div>

Hello, I’ve pulled my hairs hours long but I had no success with  
Autotest hooks…

The test file is in  
test/scraping/something\_test.rb  
The library file is in  
lib/scaping/something.rb

1. Created a .autotest file in my project root
2. Added the simplest hook I could to narrow down the problem

Autotest.add\_hook :initialize do |at|  
at.add\_mapping(/lib/scraping/something.rb/) do |f, \_|  
at.files\_matching /something\_test.rb/  
end  
end

Still seeing dunno!

What’s wrong ?
