Skip to content

Commit f3f2b60

Browse files
jshasyphar
authored andcommitted
Remove a releases-by-owner test
1 parent cef9d9a commit f3f2b60

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

src/web/releases.rs

-33
Original file line numberDiff line numberDiff line change
@@ -1370,39 +1370,6 @@ mod tests {
13701370
});
13711371
}
13721372

1373-
#[test]
1374-
fn nonexistent_owner_page() {
1375-
wrapper(|env| {
1376-
env.fake_release()
1377-
.name("some_random_crate")
1378-
.add_owner(CrateOwner {
1379-
login: "foobar".into(),
1380-
avatar: "https://example.org/foobar".into(),
1381-
name: "Foo Bar".into(),
1382-
email: "[email protected]".into(),
1383-
})
1384-
.create()?;
1385-
let page = kuchiki::parse_html().one(
1386-
env.frontend()
1387-
.get("/releases/random-author")
1388-
.send()?
1389-
.text()?,
1390-
);
1391-
1392-
assert_eq!(page.select("#crate-title").unwrap().count(), 1);
1393-
assert_eq!(
1394-
page.select("#crate-title")
1395-
.unwrap()
1396-
.next()
1397-
.unwrap()
1398-
.text_contents(),
1399-
"The requested owner does not exist",
1400-
);
1401-
1402-
Ok(())
1403-
});
1404-
}
1405-
14061373
#[test]
14071374
fn home_page_links() {
14081375
wrapper(|env| {

0 commit comments

Comments
 (0)