Does this work? describe Agent, "rated by a user with the same kind of transaction" do it 'should not be rated twice' do # stuff end end
s.ross wrote: > For that simple case, yes. But how about the case where I specify: > > Agent "should not be possible for the same user to rate the same > agent twice with same kind of transaction" > > The English grammar gets a bit twisty. Perhaps: > > Agent "should not allow the same user to rate the same agent twice > with the same kind of transaction" > > Thoughts? > > > On Jul 5, 2007, at 12:19 PM, Edward Ocampo-Gooding wrote: > >>> I'm looking through my specs and they work great, but they don't read >>> as English. I'm wondering how others are phrasing these. Here are >>> some examples: >>> >>> describe Agent do >>> it 'should be possible to create one' do >>> end >>> end >> Does >> >> describe Agent do >> it 'should be createable' do >> # stuff >> end >> end >> >> work for you? >> _______________________________________________ >> rspec-users mailing list >> rspec-users@rubyforge.org >> http://rubyforge.org/mailman/listinfo/rspec-users > > _______________________________________________ > rspec-users mailing list > rspec-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users > _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users