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

Ashley Moran work at ashleymoran.me.uk
Wed Jul 11 06:42:15 EDT 2007


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?

Ashley




More information about the rspec-users mailing list