commit e73e84c86c9054b511f7f75d8990acd6eae5ad5a Author: Mauro Talevi <mauro.tal...@aquilonia.org> AuthorDate: Sat, 28 Dec 2013 22:07:55 +0100 Commit: Mauro Talevi <mauro.tal...@aquilonia.org> CommitDate: Sat, 28 Dec 2013 22:07:55 +0100
Corrected context.story wording. diff --git a/examples/core/src/main/java/org/jbehave/examples/core/steps/ContextSteps.java b/examples/core/src/main/java/org/jbehave/examples/core/steps/ContextSteps.java index 754eda4..1d9b827 100644 --- a/examples/core/src/main/java/org/jbehave/examples/core/steps/ContextSteps.java +++ b/examples/core/src/main/java/org/jbehave/examples/core/steps/ContextSteps.java @@ -24,13 +24,13 @@ public class ContextSteps { context.variables.put(name, name); } - @Then("the context variables includes the name %name") + @Then("the context includes the name %name") public void thenTheContextIncludes(String name){ Map<String, Object> variables = context.variables; MatcherAssert.assertThat(variables, hasEntry(name, (Object)name)); } - @Then("the context variables does not include the name %name") + @Then("the context does not include the name %name") public void thenTheContextDoesNotInclude(String name){ Map<String, Object> variables = context.variables; MatcherAssert.assertThat(variables, not(hasEntry(name, (Object)name))); diff --git a/examples/core/src/main/java/org/jbehave/examples/core/stories/context.story b/examples/core/src/main/java/org/jbehave/examples/core/stories/context.story index ea4b7ee..bfb67d1 100644 --- a/examples/core/src/main/java/org/jbehave/examples/core/stories/context.story +++ b/examples/core/src/main/java/org/jbehave/examples/core/stories/context.story @@ -6,10 +6,12 @@ I want to use a context object Scenario: One When a variable of name one is processed -Then the context variables includes the name one +Then the context includes the name one Scenario: Two When a variable of name two is processed -Then the context variables includes the name two -And the context variables does not include the name one +Then the context includes the name two +And the context does not include the name one + +