[rspec-users] Indentation Conventions for Ruby and Cucumber
Fernando García Samblas
fernando.garcia at the-cocktail.com
Thu Dec 4 12:01:35 EST 2008
Andrew Premdas escribió:
> Oh but cucumber features so want to be idented on the I
>
> Scenario: Anonymous user can not duplicate a un-activated account
> Given I am an anonymous user
> And a registered user Fred exists
> When I signup as Fred
> Then I should see an error
>
> Really need to view above with a monspaced font - if its not coming
> out that way in your mail reader.
+0.66 :)
I like to indent this way, but within a given, when or then block:
Scenario: Anonymous user can not duplicate a un-activated account
Given I am an anonymous user
And a registered user Fred exists
When I signup as Fred
Then I should see an error
Great idea, I love conventions!!!
Nando
>
> Andrew
>
> 2008/12/3 Mikel Lindsaar <raasdnil at gmail.com <mailto:raasdnil at gmail.com>>:
> > On Thu, Nov 27, 2008 at 4:28 PM, Aslak Hellesøy
> <aslak.hellesoy at gmail.com <mailto:aslak.hellesoy at gmail.com>>
> > wrote:
> >>
> >> When (if) this thread ends, let's start a discussion about indentation
> >> conventions!
> >
> > Oh... let the pleasure be mine!... and why wait?
> > _EVERYONE_ knows that the only way to indent ruby code is 2 plain
> spaces.
> > Tabs are known to be the source of all evil and 4 spaces obviously
> wastes
> > space and bandwidth...
> > Anyone else who says otherwise is obviously and irrefutably misguided :D
> >
> > Mikel
> > <tongue firmly in cheek>
> > _______________________________________________
> > rspec-users mailing list
> > rspec-users at rubyforge.org <mailto: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
--
Fernando García Samblas
fernando.garcia at the-cocktail.com
http://nando.lacoctelera.com
The Cocktail
C/ Salamanca 17
28020 Madrid
+34 91 567 06 05
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20081204/26f4dd07/attachment-0001.html>
More information about the rspec-users
mailing list