Skip to content

Commit

Permalink
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
@@ -12,7 +12,6 @@
//! test,
//! )
//! .select(["tests/cases/*.in"])
//! .action_env("SNAPSHOTS")
//! .test();
//!
//! fn setup(input_path: std::path::PathBuf) -> snapbox::harness::Case {
@@ -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

0 comments on commit 667e940

Please sign in to comment.