Skip to content

Commit

Permalink
Fix assertions after updating gherkin to 0.11.2 version (#205, cucu…
Browse files Browse the repository at this point in the history
  • Loading branch information
ilslv authored Feb 23, 2022
1 parent f657ce0 commit b25fa32
Show file tree
Hide file tree
Showing 16 changed files with 186 additions and 186 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ console = "0.15"
derive_more = { version = "0.99.17", features = ["as_ref", "deref", "deref_mut", "display", "error", "from", "into"], default_features = false }
either = "1.6"
futures = "0.3.17"
gherkin = "0.11.1"
gherkin = "0.11.2"
globwalk = "0.8.1"
itertools = "0.10"
linked-hash-map = "0.5.3"
Expand Down
2 changes: 1 addition & 1 deletion src/feature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ fn expand_scenario(
// This is done to differentiate `Hash`es of
// scenario outlines with the same examples.
expanded.position = position;
expanded.position.line += id + 1;
expanded.position.line += id + 2;

expanded.tags.extend(tags.cloned());

Expand Down

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions tests/features/output/background_rule_outline.feature.out

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions tests/features/output/background_scenario_outline.feature.out

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions tests/features/output/rule_background_outline.feature.out

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions tests/features/output/rule_outline.feature.out

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions tests/features/output/scenario_outline.feature.out

Large diffs are not rendered by default.

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions tests/features/output/scenario_outline_table.feature.out

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions tests/features/output/scenario_outline_with_tags.feature.out

Large diffs are not rendered by default.

Large diffs are not rendered by default.

58 changes: 29 additions & 29 deletions tests/json/correct.json
Original file line number Diff line number Diff line change
Expand Up @@ -296,22 +296,22 @@
"keyword": "Scenario Outline",
"type": "scenario",
"id": "outline/wait",
"line": 12,
"line": 14,
"name": "wait",
"tags": [
{
"name": "tag",
"line": 12
"line": 14
},
{
"name": "fail_after",
"line": 12
"line": 14
}
],
"steps": [
{
"keyword": "Given",
"line": 6,
"line": 5,
"name": "2 secs",
"result": {
"status": "Passed",
Expand All @@ -320,7 +320,7 @@
},
{
"keyword": "When",
"line": 7,
"line": 6,
"name": "2 secs",
"result": {
"status": "Passed",
Expand All @@ -329,7 +329,7 @@
},
{
"keyword": "Then",
"line": 8,
"line": 7,
"name": "2 secs",
"result": {
"status": "Passed",
Expand Down Expand Up @@ -359,22 +359,22 @@
"keyword": "Scenario Outline",
"type": "scenario",
"id": "outline/wait",
"line": 13,
"line": 15,
"name": "wait",
"tags": [
{
"name": "tag",
"line": 13
"line": 15
},
{
"name": "fail_after",
"line": 13
"line": 15
}
],
"steps": [
{
"keyword": "Given",
"line": 6,
"line": 5,
"name": "1 secs",
"result": {
"status": "Passed",
Expand All @@ -383,7 +383,7 @@
},
{
"keyword": "When",
"line": 7,
"line": 6,
"name": "1 secs",
"result": {
"status": "Passed",
Expand All @@ -392,7 +392,7 @@
},
{
"keyword": "Then",
"line": 8,
"line": 7,
"name": "1 secs",
"result": {
"status": "Passed",
Expand Down Expand Up @@ -422,22 +422,22 @@
"keyword": "Scenario Outline",
"type": "scenario",
"id": "outline/wait",
"line": 14,
"line": 16,
"name": "wait",
"tags": [
{
"name": "tag",
"line": 14
"line": 16
},
{
"name": "fail_after",
"line": 14
"line": 16
}
],
"steps": [
{
"keyword": "Given",
"line": 6,
"line": 5,
"name": "1 secs",
"result": {
"status": "Passed",
Expand All @@ -446,7 +446,7 @@
},
{
"keyword": "When",
"line": 7,
"line": 6,
"name": "1 secs",
"result": {
"status": "Passed",
Expand All @@ -455,7 +455,7 @@
},
{
"keyword": "Then",
"line": 8,
"line": 7,
"name": "1 secs",
"result": {
"status": "Passed",
Expand Down Expand Up @@ -485,26 +485,26 @@
"keyword": "Scenario Outline",
"type": "scenario",
"id": "outline/wait",
"line": 19,
"line": 21,
"name": "wait",
"tags": [
{
"name": "tag",
"line": 19
"line": 21
},
{
"name": "fail_after",
"line": 19
"line": 21
},
{
"name": "long",
"line": 19
"line": 21
}
],
"steps": [
{
"keyword": "Given",
"line": 6,
"line": 5,
"name": "5 secs",
"result": {
"status": "Passed",
Expand All @@ -513,7 +513,7 @@
},
{
"keyword": "When",
"line": 7,
"line": 6,
"name": "5 secs",
"result": {
"status": "Passed",
Expand All @@ -522,7 +522,7 @@
},
{
"keyword": "Then",
"line": 8,
"line": 7,
"name": "5 secs",
"result": {
"status": "Passed",
Expand Down Expand Up @@ -559,7 +559,7 @@
"keyword": "Scenario Outline",
"type": "scenario",
"id": "rule-outline/to-them-all/wait",
"line": 10,
"line": 11,
"name": "To them all wait",
"tags": [],
"steps": [
Expand Down Expand Up @@ -612,7 +612,7 @@
"keyword": "Scenario Outline",
"type": "scenario",
"id": "rule-outline/to-them-all/wait",
"line": 11,
"line": 12,
"name": "To them all wait",
"tags": [],
"steps": [
Expand Down Expand Up @@ -665,7 +665,7 @@
"keyword": "Scenario Outline",
"type": "scenario",
"id": "rule-outline/to-them-all/wait",
"line": 12,
"line": 13,
"name": "To them all wait",
"tags": [],
"steps": [
Expand Down Expand Up @@ -718,7 +718,7 @@
"keyword": "Scenario Outline",
"type": "scenario",
"id": "rule-outline/to-them-all/wait",
"line": 13,
"line": 14,
"name": "To them all wait",
"tags": [],
"steps": [
Expand Down

0 comments on commit b25fa32

Please sign in to comment.