[rspec-users] Reason for _spec.rb convention

Wincent Colaiuta win at wincent.com
Mon Sep 3 08:47:56 EDT 2007


El 3/9/2007, a las 13:59, Ashley Moran escribió:

> Hi
>
> Easy one - I just wondered why all spec files for rspec_on_rails end
> "_spec.rb" instead of just ".rb"?  They are all inside the spec
> folder so surely the fact they are specs is implicit?
>
> Ashley

I know it's very application-specific, but one good reason for this  
is that it makes finding files in TextMate much easier when you hit  
Command-T; you type a few characters and at a glance can distinguish  
between spec and implementation files.

Cheers,
Wincent



More information about the rspec-users mailing list