[
https://jira.codehaus.org/browse/JBEHAVE-615?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mauro Talevi resolved JBEHAVE-615.
----------------------------------
Resolution: Fixed
You can now use pattern variants (JBEHAVE-702):
{code}
"I expect to see the message $message {|.}"
{code}
> Ignore full-stop/period|punctation at end of step
> -------------------------------------------------
>
> Key: JBEHAVE-615
> URL: https://jira.codehaus.org/browse/JBEHAVE-615
> Project: JBehave
> Issue Type: Improvement
> Components: Core
> Reporter: Mark Michaelis
> Assignee: Mauro Talevi
> Priority: Minor
> Fix For: 3.6
>
>
> I experienced some trouble especially with {{@}}{{Then}} steps ending with
> punctation characters:
> {noformat}
> Given I do this
> When I do that
> Then I expect to see the message Hello World.
> {noformat}
> will require a step definition like
> {code:java}
> @Then("I expect to see the message $message.")
> {code}
> Mind that you must not forget the period at the end of the step definition...
> otherwise message will be {{Hello World.}} rathen than {{Hello World}}.
> This is a quite common mistake and in addition it prevents the step
> definition to be reusable here:
> {noformat}
> Given I do this
> When I do that
> Then I expect to see the message Hello World
> And the world echoes Hello John.
> {noformat}
> where it is required to have an Alias just because of the period. Or, as
> alternative, the assertions inside need to deal with the period at the end.
> It would be nice if JBehave could ignore this period although it is not quite
> clear to me how to handle scenarios where the period needs to be parsed. And
> of course such a change might break existing tests.
--
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