Skip to content

Commit

Permalink
Revert "This introduces the bug", back to working
Browse files Browse the repository at this point in the history
This reverts commit 1461968.
  • Loading branch information
maximetinu committed Oct 17, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 1461968 commit ceafda1
Showing 3 changed files with 8 additions and 13 deletions.
2 changes: 1 addition & 1 deletion crates/main_lib/tests/uat.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use cucumber::World;
use sub_lib::Cat;
use sub_lib_gherkin::sub_lib::context::AnimalWorld;
use sub_lib_gherkin::sub_lib::AnimalWorld;

// This runs before everything else, so you can setup things here.
#[tokio::main]
9 changes: 0 additions & 9 deletions crates/sub_lib_gherkin/src/sub_lib/context.rs

This file was deleted.

10 changes: 7 additions & 3 deletions crates/sub_lib_gherkin/src/sub_lib/mod.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
use cucumber::*;
use sub_lib::Cat;

pub mod context;

use context::AnimalWorld;
// `World` is your shared, likely mutable state.
// Cucumber constructs it via `Default::default()` for each scenario.
#[derive(Debug, Default, World)]
pub struct AnimalWorld {
pub(crate) cat: Cat,
}

// Steps are defined with `given`, `when` and `then` attributes.
#[given("a hungry cat")]

0 comments on commit ceafda1

Please sign in to comment.