[rspec-users] Reason for _spec.rb convention

David Chelimsky dchelimsky at gmail.com
Mon Sep 3 10:02:21 EDT 2007


On 9/3/07, Scott Taylor <mailing_lists at railsnewbie.com> wrote:
>
> 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.

The autotest mapping you speak of ships with rspec, not ZenTest, so if
we chose to rename the files there would be no problem.

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


More information about the rspec-users mailing list