[rspec-users] New Style: describe-it instead of context-specify

aslak hellesoy aslak.hellesoy at gmail.com
Sun Mar 25 16:46:42 EDT 2007


On 3/25/07, Hussein Morsy <hussein at morsy.de> wrote:
> Hello,
>
> in the tunk, i found a new style for spec:
>
> describe Foo do
>    it "should do bar" do
>      ...
>    end
> end
>
> instead of
>
> context "Foo"
>    context "should do bar"
>      ...
>    end
> end
>
> The Rails-Textmate-bundle in trunk use only  the new "describe-it"
> style,
>
> What are the reasons for the new style ?

We believe it will lead spec writers to subconsciously write more
behavioural specs.

> Shall i use the new style from now on ?
>

Yes, but we will still support the old style for a good while.

Aslak

>
>
> Hussein
>
>
>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>


More information about the rspec-users mailing list