From: Yossef Mendelssohn Date: 2007-05-26T01:15:36+09:00 Subject: Re: Introducing the "it" keyword On May 25, 2:40 am, Brad Phelan wrote: > Greg Fodor wrote: > > Hasn't 'it' effectively been reserved as a keyword by the RSpec team > > # bowling_spec.rb > require 'bowling' > > describe Bowling do > before(:each) do > @bowling = Bowling.new > end > > it "should score 0 for gutter game" do > 20.times { @bowling.hit(0) } > @bowling.score.should == 0 > end > end > > -- > Brad Phelanhttp://xtargets.com When I first heard about the change from context/specify to describe/ it, I thought it was completely bone-headed. A quick glance at an example changed my mind, but I still don't feel good about 'it'. Considering the number of specifications that will start with 'should', why not use --- oh I don't know, 'should'? describe Bowling do before(:each) do @bowling = Bowling.new end should "score 0 for gutter game" do 20.times { @bowling.hit(0) } @bowling.score.should == 0 end end -- -yossef