[rspec-users] Including extra directories for Autospec

Kero van Gelder kero at chello.nl
Mon May 18 14:55:10 EDT 2009


> Then I edit the files like so:
> 
> ./autotest:
> Autotest.add_hook :initialize do |at|
>   at.add_mapping(%r%^spec/something/.*_spec\.rb$%) do
>     at.files_matching(%r%^spec/something/.*_spec\.rb$%)
>   end
> end

Do you perhaps have a ~/.autotest with a hook to :initialize ?
If so, let it return nil, like this:

Autotest.add_hook :initialize do |at|
  %w{.svn .hg .git}.each {|exception|
    at.add_exception(exception)
  }
  nil
end


It's documented, but a nasty default behaviour.

Bye,
Kero.

___
How can I change the world if I can't even change myself?
  -- Faithless, Salva Mea


More information about the rspec-users mailing list