On Mar 21, 2008, at 3:18 pm, David Chelimsky wrote:
>> Rather than anything that does not start with
>> Scenario|Given|When|Then|And being treated as a comment it seems more
>> future-proof if we just say that any line whose first non-whitespace
>> character is a # ...  is a comment.
>
> Great idea Zach! Glad you thought of it ;)

I was about to say I've got mixed feelings about this because I always  
considered the plain text story files to be a publishable document.   
But now I've noticed there's a class Story::HtmlFormatter hidden away  
in the gem that could be used to prepare that, which means the .story  
files are really just another source file (so I vote +1 for the /^ 
\s*#/ comment rule).

Raises the question, though - how do you *use* the story formatters?   
Can you do it through the spec command somehow?  I've never seen  
anything about them.

Ashley
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to