[rspec-users] Wording describe/it so specdocs look good

David Chelimsky dchelimsky at gmail.com
Thu Jul 5 15:52:46 EDT 2007


On 7/5/07, s.ross <cwdinfo at gmail.com> 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?

How would you phrase all this with context/specify? Or, a bit further
off target, TestCase/test_method?

>
>
> 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 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