[rspec-users] Reason for _spec.rb convention

David Chelimsky dchelimsky at gmail.com
Mon Sep 3 10:05:43 EDT 2007

On 9/3/07, Ashley Moran <work at ashleymoran.me.uk> 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?

For me, personally, if I'm in TextMate and I see a row of tabs that say:


I'm going to be confused by that. It also makes searching for the file
that much more complicated because you have to start looking for the
folder when you search for thing.rb instead of just looking for the

Thoughts about that?

> Ashley
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users

More information about the rspec-users mailing list