From 91bea7fb2a5c584f03054bfff85879d0c8135d7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20N=2E=20Robalino?= Date: Sat, 14 Sep 2019 14:53:31 -0500 Subject: [PATCH] Assert the column is unknown. did you mean in error messages appear when `get`ing unknown columns. Here we know the column does not exist so we check the exact error message. --- tests/command_config_test.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/command_config_test.rs b/tests/command_config_test.rs index 67c12655b..dd0f4e0eb 100644 --- a/tests/command_config_test.rs +++ b/tests/command_config_test.rs @@ -108,8 +108,7 @@ fn removes_configuration_value() { dirs.config_path() ); - println!("{}", actual); - assert!(actual.contains("did you mean")); + assert!(actual.contains("Unknown column")); }); h::delete_file_at(nu::config_path().unwrap().join("test_5.toml"));