I know I can put the title in the story, what I meant was that I would like to see a getTitle() method on the Blurb (or even better the Story object). E.g. the parser should extract the title from the story, just like it does for the scenario. What do you think?
E On Wed, Dec 10, 2008 at 12:08 AM, Mauro Talevi <[EMAIL PROTECTED]>wrote: > Egil Østhus wrote: > >> Again, my fingers are not treating me well, what I meant to say in last >> mail (sorry posting an unfinished mail): >> >> Also; what is the reason for using Blur as the data type for >> beforeStory(Blurb blurb) in the ScenarioReporter interface? >> It would be convenient to have a Story data type. I would love to be able >> to get the title on the story. >> > > You can already put a title on the story. Blurb just captures everything > before Scenario keyword. E.g: > > Story: my great story > > Scenario: Scenario 1 > > Given ... > > Scenario: Scenario 2 > > Given .... > > But yes I get your point and it would make sense to rename it to Story. > > As for the comment, I meant to say that GivenScenarios should really be a > GivenStory, which can contain multiple scenarios. As an implementation > consequence of this new feature I'm contemplating introducing Story keyword, > but I've not finalised the parseable pattern yet. > > > Cheers > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > -- See my pictures at http://www.flickr.com/photos/[EMAIL PROTECTED]/ free code-giveaways at http://codeisland.blogspot.com/
