Skip to content

Commit

Permalink
test: Ensure we try and update by default
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
  • Loading branch information
kinnison committed Jun 13, 2020
1 parent 383ee97 commit c6caad9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/cli-inst-interactive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -411,3 +411,14 @@ fn test_succeed_if_rustup_sh_already_installed_env_var_set() {
assert!(!out.stdout.contains("Continue? (y/N)"));
})
}

#[test]
fn installing_when_already_installed_updates_toolchain() {
setup(&|config| {
run_input(config, &["rustup-init"], "\n\n");
let out = run_input(config, &["rustup-init"], "\n\n");
assert!(out
.stdout
.contains("stable unchanged - 1.1.0 (hash-stable-1.1.0)"));
})
}

0 comments on commit c6caad9

Please sign in to comment.