From 44d1f83c450e73bde0077b18ec0c54dbe9765f32 Mon Sep 17 00:00:00 2001 From: "Filip (Glamhoth) Demski" Date: Tue, 23 Apr 2019 13:04:23 +0200 Subject: [PATCH] Testing no default toolchain configured --- tests/cli-misc.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/cli-misc.rs b/tests/cli-misc.rs index 2d30dc7498..3a6c7f70fa 100644 --- a/tests/cli-misc.rs +++ b/tests/cli-misc.rs @@ -413,6 +413,17 @@ fn toolchains_are_resolved_early() { }); } +#[test] +fn no_panic_on_default_toolchain_missing() { + setup(&|config| { + expect_err( + config, + &["rustup", "default"], + "no default toolchain configured", + ); + }); +} + // #190 #[test] fn proxies_pass_empty_args() {