[Nitro] Isolated specs bundle

Michael Fellinger manveru at weez-int.com
Fri Mar 9 05:59:14 EST 2007


On Tue, 06 Mar 2007 16:32:56 +0900, George Moschovitis  
<george.moschovitis at gmail.com> wrote:

> Judson,
>
> if possible please break your specs in more specify blogs  so that we
> get a better (more descriptive) implementation. For example:
>
> specify "should provide standard og features" do
>
> is too general and could possibly be splite in more blocks.
>

Please note that you can nest the contexts...
which gives you something like "Og PostgreSQL Model should create_with"  
for:

   context "Og" do
     context "PostgreSQL" do
       context "Model" do
         specify "should create_with" do
           user = User.create_with :age => 42
           user.age.should == 42
         end
       end
     end
   end

nothing big, just wanted to point it out (one can generate nicer docs from  
the specs afterwards and they just look better on errors)

^ manveru

> thanks for your work,
> George.
>
>
> PS: btw, please use attr_accessor instead of property!
>
>
>
>




More information about the Nitro-general mailing list