[rspec-users] Reason for _spec.rb convention

Scott Taylor mailing_lists at railsnewbie.com
Mon Sep 3 08:50:22 EDT 2007

On Sep 3, 2007, at 7:59 AM, Ashley Moran wrote:

> 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?

Personally, I think the only reason we keep it around is for  
Autotest, which maps xyz_spec.rb => xyz.rb.  But - Feel free to name  
your specs however you choose.


More information about the rspec-users mailing list