[rspec-users] Including extra directories for Autospec

David Chelimsky dchelimsky at gmail.com
Wed May 27 04:31:59 EDT 2009


Adam, that's not what Kero was asking about. In addition to the
./.autotest file, do you also have a ~/.autotest file?


On Tue, May 19, 2009 at 1:54 AM, Adam Anderson <adamandersonis at gmail.com> wrote:
> 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
>>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>


More information about the rspec-users mailing list