Nick Hoffman wrote in post #974004:
> On Tuesday, January 11, 2011 12:41:54 PM UTC-5, Ruby-Forum.com User
> wrote:
>> it "should set the value to 2" do
>>
> I believe David Chelimsky (the original/primary author of RSpec)
> specifically said that spec descriptions should not begin with "should".
> I
> tried to find where he wrote that, but wasn't able to. However, take a
> look
> at David's examples:
>
> 
http://blog.davidchelimsky.net/2010/11/07/specifying-mixins-with-shared-example-groups-in-rspec-2/
> http://blog.davidchelimsky.net/2010/06/14/filtering-examples-in-rspec-2/
> http://blog.davidchelimsky.net/2009/09/15/let-it-be-less/
>
> None of those posts have "should" in a spec description.

And virtually none of them use .should for anything in the steps.  Note 
the symmetry.

>
> The latest example on David's blog that uses "should" in a spec
> description
> is from 2008:
> http://blog.davidchelimsky.net/2008/07/01/new-controller-examples/

Interesting (especially since I've been using RSpec since before 2008). 
I maintain that the older style is clearer, since 'it "adds 2 to foo"' 
is misleading: it *should* add 2 to foo, but we don't know whether it 
*does* until we run the test.

>
> However, this convo should be moved to the RSpec mailing list.

Yeah, probably.

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to