Skip to content

Commit

Permalink
fix(tryfn): Deprecate Action overriding for Assert
Browse files Browse the repository at this point in the history
Cherry pick a30d3bf (#295)
  • Loading branch information
epage committed May 17, 2024
1 parent 7aea08d commit 667e940
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/snapbox/src/harness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
//! test,
//! )
//! .select(["tests/cases/*.in"])
//! .action_env("SNAPSHOTS")
//! .test();
//!
//! fn setup(input_path: std::path::PathBuf) -> snapbox::harness::Case {
Expand Down Expand Up @@ -90,12 +89,14 @@ where
}

/// Read the failure action from an environment variable
#[deprecated(since = "0.1.0", note = "Replaced with `Harness::with_assert`")]
pub fn action_env(mut self, var_name: &str) -> Self {
self.config = self.config.action_env(var_name);
self
}

/// Override the failure action
#[deprecated(since = "0.1.0", note = "Replaced with `Harness::with_assert`")]
pub fn action(mut self, action: Action) -> Self {
self.config = self.config.action(action);
self
Expand Down

0 comments on commit 667e940

Please sign in to comment.