[rspec-users] "they" synonym for "it"?

David Chelimsky dchelimsky at gmail.com
Wed Jul 11 08:47:29 EDT 2007


On 7/11/07, aslak hellesoy <aslak.hellesoy at gmail.com> wrote:
> On 7/11/07, Ashley Moran <work at ashleymoran.me.uk> wrote:
> > I've noticed that I phrase a lot of shared behaviours in plural, eg
> >
> >    describe "All payment_details views"
> >
> > How about a "they" alias to "it" so you can write
> >
> >    describe "All payment_details views", :shared => true do
> >      they "should have a card number field" do
> >        # ...
> >      end
> >    end
> >
> > WDYT?
> >
>
> I'm a little worried that If we add this alias, people are going to
> want umpteen other aliases like it_should etc.
>
> It should be easy for you to just alias that method locally in your project

+1
We want to keep things simple.

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


More information about the rspec-users mailing list