[rspec-users] Indentation Conventions for Ruby and Cucumber

Peter Jaros peter.a.jaros at gmail.com
Thu Dec 4 14:14:28 EST 2008


On Wed, Dec 3, 2008 at 9:27 AM, Andrew Premdas <apremdas at gmail.com> wrote:
> 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

I have to disagree.  I find the jagged margin looks messy.  I would
never indent other prose this way, so why would I indent my features
this way?  They're not code, they're prose.  They're not written to be
parsed, they're written to be read like a story.

Peter


More information about the rspec-users mailing list