[rspec-devel] [Proposal] change 'spec' to 'rspec'

Pat Maddox pergesu at gmail.com
Mon Sep 29 23:35:35 EDT 2008


"David Chelimsky" <dchelimsky at gmail.com> writes:

> The convention for gems is that the top level module shares a name
> with the gem, but rspec uses 'spec' instead, resulting in things like
> this:
>
> require 'rubygems'
> gem 'rspec'
> require 'spec'
>
> I'd like to propose that we change the 'spec' namespace to 'rspec'.
> We'd have to continue to support 'spec' for backwards compatibility
> for a long time, but we can do that with a few extra files that just
> require other files.
>
> Thoughts?

I nearly always write
require 'rspec'

when I start a new app, and am confused for a bit before I remember that
it's just spec.  It was kind of funny when I was pairing one time:
me: *types require 'rspec'*
pair: "Isn't it just require 'spec'?"
me: "oh right"
pair: "aren't you on the rspec team?"

:)

Pat


More information about the rspec-devel mailing list