David Tanner created JBEHAVE-782:
------------------------------------

             Summary: Minor change to function parseScenario in RegexStoryParser
                 Key: JBEHAVE-782
                 URL: https://jira.codehaus.org/browse/JBEHAVE-782
             Project: JBehave
          Issue Type: Improvement
          Components: Core
    Affects Versions: 3.6.4
         Environment: N/A
            Reporter: David Tanner
            Priority: Trivial


Problem Statement:
When the RegexStoryParser parses out a scenario, it attempts to remove the 
title from the step to get the scenario without title, but the function doesn't 
account for Scenario:\n before the title.  I don't think this will affect 
anything, and I don't think anything was broken initally, I just noticed as 
debugging that it didn't strip out the actual title because of the Scenario 
keyword, newline, and space before it.

Actual Code:
RegexStoryParser line 151: 

String scenarioWithoutTitle = removeStart(scenarioAsText, title);

Recommended Fix:
String scenarioWithoutTitle = removeStart(scenarioAsText, keywords.scenario() + 
"\n " + title);

Where "\n " can be replaced with whatever new line character is being used plus 
the space.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to