[
https://jira.codehaus.org/browse/JBEHAVE-782?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mauro Talevi updated JBEHAVE-782:
---------------------------------
Fix Version/s: 3.6.7
Assignee: Mauro Talevi
> 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
> Assignee: Mauro Talevi
> Priority: Trivial
> Fix For: 3.6.7
>
> Original Estimate: 5 minutes
> Remaining Estimate: 5 minutes
>
> 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