[rspec-users] Including extra directories for Autospec

Adam Anderson adamandersonis at gmail.com
Tue May 19 01:54:20 EDT 2009


Yeah. I apologize that was a typo on my part. It should have said ./.autotest


-Adam

On Mon, May 18, 2009 at 11:55 AM, Kero van Gelder <kero at chello.nl> wrote:
>> 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
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>


More information about the rspec-users mailing list