Skip to content

Commit 67f1d88

Browse files
committed
Test fetching from alt registry
1 parent 884411f commit 67f1d88

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

tests/integration/crates_alt.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
use failure::Error;
2+
use rustwide::Crate;
3+
4+
const INDEX_URL: &str = "https://github.com/rust-lang/staging.crates.io-index";
5+
6+
#[test]
7+
fn test_fetch() -> Result<(), Error> {
8+
let workspace = crate::utils::init_workspace()?;
9+
10+
let krate = Crate::registry(INDEX_URL, "foo", "0.4.0");
11+
krate.fetch(&workspace)?;
12+
13+
Ok(())
14+
}

tests/integration/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
mod crates_alt;
12
mod crates_git;
23
mod purge_caches;

0 commit comments

Comments
 (0)