[rspec-users] "they" synonym for "it"?
aslak.hellesoy at gmail.com
Wed Jul 11 07:52:54 EDT 2007
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
> # ...
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
> rspec-users mailing list
> rspec-users at rubyforge.org
More information about the rspec-users