On Fri, Mar 21, 2008 at 5:24 AM, Tim Haines <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> newb q: The "pending" support for spec's and steps is nice.  I'm just
> wondering why a scenario itself can't be pending?

Because nobody asked for it :)

Wanna file a feature request at lighthouse? http://rspec.lighthouseapp.com

> I.e. it seems to me like
> it would be nice to write up scenario titles for scenarios as you think of
> them, and for low-priority fringe scenarios leave the steps unwritten until
> it comes time to implement the scenario?
>
> Is there a way to add comments to the plain text file in plain text stories?

Anything between the line that begins with Story: and the first line
that begins with Scenario: will be part of the story narrative. Sort
of like a comment, but it gets printed out. So I sometimes add
additional commentary there to provide context around the "As a .., I
want ..., So that ..." statement.

Anything after the first Scenario: that does not begin with any of the
keywords (Scenario:, Given, When, Then, And) is simply ignored, so you
can put comments between steps and they will not be processed.

I would not go crazy with this at this point because there has been a
request to support multiline text in plain text stories, at which
point your comments might accidentally get interpreted.

Perhaps now is the time to devise a formal "comment indicator." I
think the obvious choice would be the same one we use in Ruby: #

Given this step
# this is a comment
When this other step
etc

Thoughts?

Cheers,
David

>
> Cheers,
>
> Tim.
>
>
>
> _______________________________________________
>  rspec-users mailing list
>  rspec-users@rubyforge.org
>  http://rubyforge.org/mailman/listinfo/rspec-users
>
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to